[SCM] libav/experimental: maybe fix segfault with missing extradata (unchecked)
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:55:28 UTC 2013
The following commit has been merged in the experimental branch:
commit 2c160320280a80362507eb4ce5fe20dd399be93e
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Wed Jan 24 00:54:36 2007 +0000
maybe fix segfault with missing extradata (unchecked)
Originally committed as revision 7677 to svn://svn.ffmpeg.org/ffmpeg/trunk
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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list