]> git.sesse.net Git - ffmpeg/commitdiff
h263dec: disable coded dimensions = 0 handling
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Sep 2012 02:36:35 +0000 (04:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Sep 2012 02:38:46 +0000 (04:38 +0200)
This code causes infinite loops

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h263dec.c

index 0b851578f055f3275332239ea625dfb31cae2e13..ef1b6ed62c682cd9c3de249b583f9ccd5e51caf1 100644 (file)
@@ -598,7 +598,7 @@ retry:
         /* FIXME: By the way H263 decoder is evolving it should have */
         /* an H263EncContext                                         */
 
-    if (!avctx->coded_width || !avctx->coded_height) {
+    if ((!avctx->coded_width || !avctx->coded_height) && 0) {
         ParseContext pc= s->parse_context; //FIXME move these demuxng hack to avformat
 
         s->parse_context.buffer=0;