Commit 05b03370 authored by Michael Niedermayer's avatar Michael Niedermayer

motionpixels/mp_decode_frame_helper: assert that the first pixel doesnt reuse the last.

reusing the last would use uninitialized data, this should be
impossible currently, but better to check by assert.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent df727d40
......@@ -220,6 +220,8 @@ static void mp_decode_frame_helper(MotionPixelsContext *mp, GetBitContext *gb)
YuvPixel p;
int y, y0;
av_assert1(mp->changes_map[0]);
for (y = 0; y < mp->avctx->height; ++y) {
if (mp->changes_map[y * mp->avctx->width] != 0) {
memset(mp->gradient_scale, 1, sizeof(mp->gradient_scale));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment