Browse Source

don't fetch the size of SEQH unless SEQH was found

Originally committed as revision 2888 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Mike Melanson 21 years ago
parent
commit
ee59b4b680
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/svq3.c

+ 1
- 1
libavcodec/svq3.c View File

@@ -799,13 +799,13 @@ static int svq3_decode_frame (AVCodecContext *avctx,
break; break;
extradata++; extradata++;
} }
size = BE_32(&extradata[4]);


/* if a match was found, parse the extra data */ /* if a match was found, parse the extra data */
if (!memcmp (extradata, "SEQH", 4)) { if (!memcmp (extradata, "SEQH", 4)) {


GetBitContext gb; GetBitContext gb;


size = BE_32(&extradata[4]);
init_get_bits (&gb, extradata + 8, size); init_get_bits (&gb, extradata + 8, size);


/* 'frame size code' and optional 'width, height' */ /* 'frame size code' and optional 'width, height' */


Loading…
Cancel
Save