From: Michael Niedermayer Date: Thu, 20 Sep 2012 02:36:35 +0000 (+0200) Subject: h263dec: disable coded dimensions = 0 handling X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d2981b8ef191fc7876e3486e42222ab6a8777c24;hp=61ced71d79ebef22f8ab6ee3511a7a989f6fd3ac;p=ffmpeg h263dec: disable coded dimensions = 0 handling This code causes infinite loops Signed-off-by: Michael Niedermayer --- diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 0b851578f05..ef1b6ed62c6 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -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;