aboutsummaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer2007-01-24 00:54:36 +0000
committerMichael Niedermayer2007-01-24 00:54:36 +0000
commit2c160320280a80362507eb4ce5fe20dd399be93e (patch)
tree5e601ca16c2555655c45b4490c03e8cdb125461c /libavcodec
parente995cfca28fa6e84829cd64d3f5aa763d98b4dd8 (diff)
maybe fix segfault with missing extradata (unchecked)
Originally committed as revision 7677 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/svq3.c2
1 files changed, 1 insertions, 1 deletions
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;