You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Merge commit '5f7aecde02a95451e514c809f2794c1deba80695'
* commit '5f7aecde02a95451e514c809f2794c1deba80695':
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: f3f488423a
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -226,6 +226,8 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
|
|
||||||
if (bits_per_plane == 8) {
|
if (bits_per_plane == 8) {
|
||||||
picmemset_8bpp(s, frame, val, run, &x, &y);
|
picmemset_8bpp(s, frame, val, run, &x, &y);
|
||||||
|
if (y < 0)
|
||||||
|
goto finish;
|
||||||
} else {
|
} else {
|
||||||
picmemset(s, frame, val, run, &x, &y, &plane, bits_per_plane);
|
picmemset(s, frame, val, run, &x, &y, &plane, bits_per_plane);
|
||||||
}
|
}
|
||||||
@@ -246,6 +248,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
y--;
|
y--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
finish:
|
||||||
|
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
return avpkt->size;
|
return avpkt->size;
|
||||||
|
Reference in New Issue
Block a user