From d2981b8ef191fc7876e3486e42222ab6a8777c24 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 20 Sep 2012 04:36:35 +0200 Subject: [PATCH] h263dec: disable coded dimensions = 0 handling This code causes infinite loops Signed-off-by: Michael Niedermayer --- libavcodec/h263dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 0b851578f0..ef1b6ed62c 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;