Commit efb21b0a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '5f7aecde'

* commit '5f7aecde':
  pictordec: break out of both decoding loops when y drops below 0

Conflicts:
	libavcodec/pictordec.c

The added check is redundant.
It shows the error path more clearly though

See: f3f48842Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 164b67ca 5f7aecde
......@@ -226,6 +226,8 @@ static int decode_frame(AVCodecContext *avctx,
if (bits_per_plane == 8) {
picmemset_8bpp(s, frame, val, run, &x, &y);
if (y < 0)
goto finish;
} else {
picmemset(s, frame, val, run, &x, &y, &plane, bits_per_plane);
}
......@@ -246,6 +248,7 @@ static int decode_frame(AVCodecContext *avctx,
y--;
}
}
finish:
*got_frame = 1;
return avpkt->size;
......
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