maybe fix segfault with missing extradata (unchecked)

Originally committed as revision 7677 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-01-24 00:54:36 +00:00
parent e995cfca28
commit 2c16032028
1 changed files with 1 additions and 1 deletions

View 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;