diff options
author | Jonas Karlman <[email protected]> | 2022-05-13 22:29:12 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2022-05-17 10:05:41 +0200 |
commit | a074aa4760d1dad0bd565c0f66e7250f5f219ab0 (patch) | |
tree | a3a18198ecb3e25af9f8c01a5ee7e8370e111e1b /lib/test_fortify/write_overflow-memcpy.c | |
parent | 7ab889f09dfa70e8097ec1b9186fd228124112cb (diff) |
media: rkvdec: h264: Fix bit depth wrap in pps packet
The luma and chroma bit depth fields in the pps packet are 3 bits wide.
8 is wrongly added to the bit depth values written to these 3 bit fields.
Because only the 3 LSB are written, the hardware was configured
correctly.
Correct this by not adding 8 to the luma and chroma bit depth value.
Fixes: cd33c830448ba ("media: rkvdec: Add the rkvdec driver")
Signed-off-by: Jonas Karlman <[email protected]>
Signed-off-by: Nicolas Dufresne <[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 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions