[FFmpeg-cvslog] r19642 - trunk/libavcodec/xsubdec.c

reimar subversion
Sat Aug 15 02:46:33 CEST 2009


Author: reimar
Date: Sat Aug 15 02:46:33 2009
New Revision: 19642

Log:
Make sure AVSubtitle is initialized, memset it to 0.

Modified:
   trunk/libavcodec/xsubdec.c

Modified: trunk/libavcodec/xsubdec.c
==============================================================================
--- trunk/libavcodec/xsubdec.c	Sat Aug 15 02:37:31 2009	(r19641)
+++ trunk/libavcodec/xsubdec.c	Sat Aug 15 02:46:33 2009	(r19642)
@@ -53,6 +53,7 @@ static int decode_frame(AVCodecContext *
     int w, h, x, y, rlelen, i;
     GetBitContext gb;
 
+    memset(sub, 0, sizeof(*sub));
     sub->format = 0;
 
     // check that at least header fits



More information about the ffmpeg-cvslog mailing list