]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit46e8893e72b43d10f5cad92355b36a7babe83724
treef3649c28288d63d0537adcbbe055ef535f38fcc3
parentcfc8c3ed533e650270152f293a3536f3ca0e7053
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