mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 22:10:34 +00:00
mjpeg: fix crash with lowres and flipped images
Fixes Ticket1155 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c0af87550a
commit
0cd17a6291
@ -974,6 +974,10 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah,
|
||||
"Can not flip image with CODEC_FLAG_EMU_EDGE set!\n");
|
||||
s->flipped = 0;
|
||||
}
|
||||
if (s->flipped && s->avctx->lowres) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Can not flip image with lowres\n");
|
||||
s->flipped = 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < nb_components; i++) {
|
||||
int c = s->comp_index[i];
|
||||
|
Loading…
Reference in New Issue
Block a user