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 0b85157..ef1b6ed 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;