maybe fix segfault with missing extradata (unchecked)

Originally committed as revision 7677 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 18 years ago
parent e995cfca28
commit 2c16032028
  1. 2
      libavcodec/svq3.c

@ -826,7 +826,7 @@ static int svq3_decode_frame (AVCodecContext *avctx,
}
/* if a match was found, parse the extra data */
if (!memcmp (extradata, "SEQH", 4)) {
if (extradata && !memcmp (extradata, "SEQH", 4)) {
GetBitContext gb;

Loading…
Cancel
Save