maybe fix segfault with missing extradata (unchecked)
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Jan 2007 00:54:36 +0000 (00:54 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Jan 2007 00:54:36 +0000 (00:54 +0000)
Originally committed as revision 7677 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/svq3.c

index c852832..8c08409 100644 (file)
@@ -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;