]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: h264: Make dpb entry management more robust
authorJonas Karlman <jonas@kwiboo.se>
Fri, 13 May 2022 20:29:20 +0000 (22:29 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 08:09:48 +0000 (10:09 +0200)
commitecf6cc7a694ef99193b4f189a7090e8922f69b3d
tree72deb3718857ea2bb9e70ba9bd05e8e71b3e49d6
parent851dc7b3297ea972095ffc58116d18ccaabb24a1
media: hantro: h264: Make dpb entry management more robust

The driver maintains stable slot locations for reference pictures. This
change makes the code more robust by using the reference_ts as key and
by marking all entries invalid right from the start.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/hantro/hantro_h264.c