diff options
author | Nicolas Dufresne <[email protected]> | 2021-08-19 16:00:09 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2021-09-06 09:39:36 +0200 |
commit | 132c88614f2b3548cd3c8979a434609019db4151 (patch) | |
tree | 2f8aa79bc79bbd38caa57ba8264c6cf3b241a8db /scripts/gdb/linux/utils.py | |
parent | 31692ab9a9ef0119959f66838de74eeb37490c8d (diff) |
media: cedrus: Fix SUNXI tile size calculation
Tiled formats requires full rows being allocated (even for Chroma
planes). When the number of Luma tiles is odd, we need to round up
to twice the tile width in order to roundup the number of Chroma
tiles.
This was notice with a crash running BA1_FT_C compliance test using
sunxi tiles using GStreamer. Cedrus driver would allocate 9 rows for
Luma, but only 4.5 rows for Chroma, causing userspace to crash.
Signed-off-by: Nicolas Dufresne <[email protected]>
Fixes: 50e761516f2b8 ("media: platform: Add Cedrus VPU decoder driver")
Reviewed-by: Jernej Skrabec <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions