aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-08-15 00:46:33 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-08-15 00:46:33 +0000
commitdf47d24501343228c8a489f4647916447fe74580 (patch)
treeef1f71a3986789f61ef7836451a6773e5c8d0049 /libavcodec
parent266649a52fe258c09bbe5d2e222431c6a864af3f (diff)
downloadffmpeg-df47d24501343228c8a489f4647916447fe74580.tar.gz
Make sure AVSubtitle is initialized, memset it to 0.
Originally committed as revision 19642 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/xsubdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c
index 4754987f54..9d3ba7f6ef 100644
--- a/libavcodec/xsubdec.c
+++ b/libavcodec/xsubdec.c
@@ -53,6 +53,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
int w, h, x, y, rlelen, i;
GetBitContext gb;
+ memset(sub, 0, sizeof(*sub));
sub->format = 0;
// check that at least header fits