From df47d24501343228c8a489f4647916447fe74580 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Sat, 15 Aug 2009 00:46:33 +0000 Subject: [PATCH] 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(+) diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c index 4754987f5..9d3ba7f6e 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 -- 2.11.0