Commit 2c160320 authored by Michael Niedermayer's avatar Michael Niedermayer

maybe fix segfault with missing extradata (unchecked)

Originally committed as revision 7677 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e995cfca
...@@ -826,7 +826,7 @@ static int svq3_decode_frame (AVCodecContext *avctx, ...@@ -826,7 +826,7 @@ static int svq3_decode_frame (AVCodecContext *avctx,
} }
/* if a match was found, parse the extra data */ /* if a match was found, parse the extra data */
if (!memcmp (extradata, "SEQH", 4)) { if (extradata && !memcmp (extradata, "SEQH", 4)) {
GetBitContext gb; GetBitContext gb;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment