]> git.baikalelectronics.ru Git - kernel.git/commit
media: cedrus: h264: Fix frame list construction
authorJernej Skrabec <jernej.skrabec@siol.net>
Tue, 25 Aug 2020 03:52:41 +0000 (05:52 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 1 Sep 2020 12:13:28 +0000 (14:13 +0200)
commit48f4c03f55d9a107326bafedb7c62a4440669ea0
treef3649c28288d63d0537adcbbe055ef535f38fcc3
parent5380d18d0ccaa2ea666c98298c79c1f66e477539
media: cedrus: h264: Fix frame list construction

Current frame list construction algorithm assumes that decoded image
will be output into its own buffer. That is true for progressive content
but not for interlaced where each field is decoded separately into same
buffer.

Fix that by checking if capture buffer is listed in DPB. If it is, reuse
it.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/sunxi/cedrus/cedrus_h264.c