avcodec/vulkan/ffv1_dec_setup: bound the fltmap write

This commit is contained in:
Michael Niedermayer
2026-07-30 01:41:17 +02:00
committed by michaelni
parent c91b50659b
commit 946272b79a

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