Apply r19642 also pgssubdec:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 26 Aug 2009 01:27:58 +0000 (01:27 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 26 Aug 2009 01:27:58 +0000 (01:27 +0000)
Make sure AVSubtitle is initialized, memset it to 0.

Originally committed as revision 19706 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/pgssubdec.c

index a27e5f9..c289cc6 100644 (file)
@@ -343,6 +343,7 @@ static int display_end_segment(AVCodecContext *avctx, void *data,
      *      not been cleared by a subsequent empty display command.
      */
 
      *      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;
     sub->start_display_time = 0;
     sub->end_display_time   = 20000;
     sub->format             = 0;