[FFmpeg-cvslog] r19643 - trunk/libavcodec/dvdsubdec.c

reimar subversion
Sat Aug 15 02:52:41 CEST 2009


Author: reimar
Date: Sat Aug 15 02:52:41 2009
New Revision: 19643

Log:
Simplify initialization of AVSubtitle by using memset.

Modified:
   trunk/libavcodec/dvdsubdec.c

Modified: trunk/libavcodec/dvdsubdec.c
==============================================================================
--- trunk/libavcodec/dvdsubdec.c	Sat Aug 15 02:46:33 2009	(r19642)
+++ trunk/libavcodec/dvdsubdec.c	Sat Aug 15 02:52:41 2009	(r19643)
@@ -173,11 +173,7 @@ static int decode_dvd_subtitles(AVSubtit
 
     if (buf_size < 10)
         return -1;
-    sub_header->rects = NULL;
-    sub_header->num_rects = 0;
-    sub_header->format = 0;
-    sub_header->start_display_time = 0;
-    sub_header->end_display_time = 0;
+    memset(sub_header, 0, sizeof(*sub_header));
 
     if (AV_RB16(buf) == 0) {   /* HD subpicture with 4-byte offsets */
         big_offsets = 1;



More information about the ffmpeg-cvslog mailing list