From df47d24501343228c8a489f4647916447fe74580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sat, 15 Aug 2009 00:46:33 +0000 Subject: Make sure AVSubtitle is initialized, memset it to 0. Originally committed as revision 19642 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/xsubdec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec') 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 -- cgit v1.2.1