]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: h264: Get the correct fallback reference buffer
authorEzequiel Garcia <ezequiel@collabora.com>
Mon, 27 Jul 2020 17:05:37 +0000 (19:05 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 1 Sep 2020 12:13:25 +0000 (14:13 +0200)
commit2bf36c7f227ea0108827eadd8238f9bd8b483e89
treee8f42d086aa8b21f70a69705580c7768f59ff1fa
parent6f0396e3bb44292cf0e9abc3dae4749b5ce2b552
media: hantro: h264: Get the correct fallback reference buffer

If the bitstream and the application are incorrectly configuring
the reference pictures, the hardware will need to fallback
to using some other reference picture.

When the post-processor is enabled, the fallback buffer
should be a shadow buffer (postproc.dec_q), and not a
CAPTURE queue buffer, since the latter is post-processed
and not really the output of the decoder core.

Fixes: a90a31c87cb48 ("media: hantro: Support color conversion via post-processing")
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/hantro/hantro_h264.c