Browse Source

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.

Originally committed as revision 14069 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
d5ae45841f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/mp3.c

+ 2
- 0
libavformat/mp3.c View File

@@ -185,6 +185,8 @@ static void id3v2_read_ttag(AVFormatContext *s, int taglen, char *dst, int dstle
char *q;
int len;

if(dstlen > 0)
dst[0]= 0;
if(taglen < 1)
return;



Loading…
Cancel
Save