From b02316146b35cd03715d166acb35d88f33eac990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Wed, 26 Aug 2009 01:27:58 +0000 Subject: [PATCH] Apply r19642 also pgssubdec: Make sure AVSubtitle is initialized, memset it to 0. Originally committed as revision 19706 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/pgssubdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c index a27e5f9d80..c289cc6a37 100644 --- a/libavcodec/pgssubdec.c +++ b/libavcodec/pgssubdec.c @@ -343,6 +343,7 @@ static int display_end_segment(AVCodecContext *avctx, void *data, * not been cleared by a subsequent empty display command. */ + memset(sub, 0, sizeof(*sub)); sub->start_display_time = 0; sub->end_display_time = 20000; sub->format = 0;