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)
commit3630e4933d40af53f698555d88e6143dc2d140b3
tree72deb3718857ea2bb9e70ba9bd05e8e71b3e49d6
parent831410700909f4e29d5af1ef26b8c59fc2d1988e
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