diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index c852832f66..8c08409e95 100644 --- a/libavcodec/svq3.c +++ b/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;