mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 01:21:06 +00:00
avcodec/vulkan/ffv1_dec_setup: bound the fltmap write
(cherry picked from commit 946272b79a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -135,6 +135,8 @@ bool decode_remap(uint slice_idx, inout SliceContext sc)
|
||||
}
|
||||
if (i - 1 >= int64_t(end))
|
||||
break;
|
||||
if (j >= fltmap[slice_idx][p].length())
|
||||
return true;
|
||||
uint iv = uint(i);
|
||||
fltmap[slice_idx][p][j++] = iv ^ (((iv & flip_mask) != 0u) ? 0u : flip);
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user