[FFmpeg-cvslog] r14069 - trunk/libavformat/mp3.c

michael subversion
Sat Jul 5 00:00:36 CEST 2008


Author: michael
Date: Sat Jul  5 00:00:35 2008
New Revision: 14069

Log:
All id3 parsers are buggy, 0 termination fix 1 of n (issue created by andreas
and found by reimar) fix is from reimar + cosmetics by me.


Modified:
   trunk/libavformat/mp3.c

Modified: trunk/libavformat/mp3.c
==============================================================================
--- trunk/libavformat/mp3.c	(original)
+++ trunk/libavformat/mp3.c	Sat Jul  5 00:00:35 2008
@@ -185,6 +185,8 @@ static void id3v2_read_ttag(AVFormatCont
     char *q;
     int len;
 
+    if(dstlen > 0)
+        dst[0]= 0;
     if(taglen < 1)
         return;
 




More information about the ffmpeg-cvslog mailing list