h263dec: Check for width/height changes on frame skips too.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Apr 2012 12:37:35 +0000 (14:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Apr 2012 12:37:35 +0000 (14:37 +0200)
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h263dec.c

index ac0303d..34b76d3 100644 (file)
@@ -438,7 +438,7 @@ retry:
         ret = ff_h263_decode_picture_header(s);
     }
 
-    if (ret < 0) {
+    if (ret < 0 || ret==FRAME_SKIPPED) {
         if (   s->width  != avctx->coded_width
             || s->height != avctx->coded_height) {
                 av_log(s->avctx, AV_LOG_WARNING, "Reverting picture dimensions change due to header decoding failure\n");