[FFmpeg-cvslog] r19706 - trunk/libavcodec/pgssubdec.c

reimar subversion
Wed Aug 26 03:27:58 CEST 2009


Author: reimar
Date: Wed Aug 26 03:27:58 2009
New Revision: 19706

Log:
Apply r19642 also pgssubdec:
Make sure AVSubtitle is initialized, memset it to 0.

Modified:
   trunk/libavcodec/pgssubdec.c

Modified: trunk/libavcodec/pgssubdec.c
==============================================================================
--- trunk/libavcodec/pgssubdec.c	Wed Aug 26 01:28:33 2009	(r19705)
+++ trunk/libavcodec/pgssubdec.c	Wed Aug 26 03:27:58 2009	(r19706)
@@ -343,6 +343,7 @@ static int display_end_segment(AVCodecCo
      *      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;



More information about the ffmpeg-cvslog mailing list