mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 10:00:08 +01:00
h263dec: Check for width/height changes on frame skips too.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -438,7 +438,7 @@ retry:
|
|||||||
ret = ff_h263_decode_picture_header(s);
|
ret = ff_h263_decode_picture_header(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0 || ret==FRAME_SKIPPED) {
|
||||||
if ( s->width != avctx->coded_width
|
if ( s->width != avctx->coded_width
|
||||||
|| s->height != avctx->coded_height) {
|
|| s->height != avctx->coded_height) {
|
||||||
av_log(s->avctx, AV_LOG_WARNING, "Reverting picture dimensions change due to header decoding failure\n");
|
av_log(s->avctx, AV_LOG_WARNING, "Reverting picture dimensions change due to header decoding failure\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user