changeset 10087:8f1e09db0905 libavcodec

Apply r19642 also pgssubdec: Make sure AVSubtitle is initialized, memset it to 0.
author reimar
date Wed, 26 Aug 2009 01:27:58 +0000
parents 3a2f437d2fea
children ecc8287398bc
files pgssubdec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pgssubdec.c	Tue Aug 25 23:28:33 2009 +0000
+++ b/pgssubdec.c	Wed Aug 26 01:27:58 2009 +0000
@@ -343,6 +343,7 @@
      *      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;