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:
Michael Niedermayer
2026-07-30 01:41:17 +02:00
parent 788e3985f8
commit caf5fdff49

View File

@@ -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++;