From 2c160320280a80362507eb4ce5fe20dd399be93e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 24 Jan 2007 00:54:36 +0000 Subject: [PATCH] maybe fix segfault with missing extradata (unchecked) Originally committed as revision 7677 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/svq3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index c852832..8c08409 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; -- 2.7.4