h263dec: disable coded dimensions = 0 handling

This code causes infinite loops

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/28/head
Michael Niedermayer 12 years ago
parent 61ced71d79
commit d2981b8ef1
  1. 2
      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;

Loading…
Cancel
Save