[FFmpeg-cvslog] r25832 - trunk/libavcodec/ass.c

aurel subversion
Sat Nov 27 02:07:06 CET 2010


Author: aurel
Date: Sat Nov 27 02:07:06 2010
New Revision: 25832

Log:
ensure the ASS string in AVSubtitleRect is 0 terminated

Modified:
   trunk/libavcodec/ass.c

Modified: trunk/libavcodec/ass.c
==============================================================================
--- trunk/libavcodec/ass.c	Fri Nov 26 11:11:16 2010	(r25831)
+++ trunk/libavcodec/ass.c	Sat Nov 27 02:07:06 2010	(r25832)
@@ -63,6 +63,7 @@ int ff_ass_add_rect(AVSubtitle *sub, con
     rects[sub->num_rects]->ass  = av_malloc(len + dlen + 1);
     strcpy (rects[sub->num_rects]->ass      , header);
     strncpy(rects[sub->num_rects]->ass + len, dialog, dlen);
+    rects[sub->num_rects]->ass[len+dlen] = 0;
     sub->num_rects++;
     return dlen;
 }



More information about the ffmpeg-cvslog mailing list