diff options
author | Jernej Skrabec <[email protected]> | 2022-07-18 18:56:49 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2022-07-27 20:27:10 +0200 |
commit | 143201a6435bf65f0115435e9dc6d95c66b908e9 (patch) | |
tree | d29bbcd24e48d0148c94eb6ef434363cb8dfcfdc /scripts/gdb/linux/tasks.py | |
parent | e39cc4960207a67a26b39ebc8449f15c53da0a99 (diff) |
media: cedrus: hevc: Add check for invalid timestamp
Not all DPB entries will be used most of the time. Unused entries will
thus have invalid timestamps. They will produce negative buffer index
which is not specifically handled. This works just by chance in current
code. It will even produce bogus pointer, but since it's not used, it
won't do any harm.
Let's fix that brittle design by skipping writing DPB entry altogether
if timestamp is invalid.
Fixes: 86caab29da78 ("media: cedrus: Add HEVC/H.265 decoding support")
Signed-off-by: Jernej Skrabec <[email protected]>
Reviewed-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions