media: mediatek: vcodec: Handle VP9 superframe bitstream with 8 sub-frames
authorIrui Wang <irui.wang@mediatek.com>
Wed, 6 Mar 2024 02:12:23 +0000 (10:12 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 26 Mar 2024 08:52:58 +0000 (09:52 +0100)
commit502892bbd2021fbe20f0d702b6b0bae281a742fa
tree07c50bf7b6830dd70023db37968803cdacf6b1ec
parent4cece764965020c22cff7665b18a012006359095
media: mediatek: vcodec: Handle VP9 superframe bitstream with 8 sub-frames

The VP9 bitstream uses superframes, which each contain 8 sub-frames,
enable accessing the last superframe by increasing the range of the index
vaidation as the maximum number of superframes is 8 and not 7, so that the
last sub-frame can be decoded normally with the stateful VP9 decoder.

Signed-off-by: Irui Wang <irui.wang@mediatek.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_if.c