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

jbr subversion
Wed Sep 16 01:37:54 CEST 2009


Author: jbr
Date: Wed Sep 16 01:37:54 2009
New Revision: 19866

Log:
Set ID3v1 genre to 0xFF (unknown) by default instead of 0 (Blues).

Modified:
   trunk/libavformat/mp3.c

Modified: trunk/libavformat/mp3.c
==============================================================================
--- trunk/libavformat/mp3.c	Wed Sep 16 01:14:55 2009	(r19865)
+++ trunk/libavformat/mp3.c	Wed Sep 16 01:37:54 2009	(r19866)
@@ -193,6 +193,7 @@ static int id3v1_create_tag(AVFormatCont
     count += id3v1_set_string(s, "album",   buf + 63, 30);
     count += id3v1_set_string(s, "year",    buf + 93,  4);
     count += id3v1_set_string(s, "comment", buf + 97, 30);
+    buf[127] = 0xFF; /* default to unknown genre */
     if ((tag = av_metadata_get(s->metadata, "track", NULL, 0))) {
         buf[125] = 0;
         buf[126] = atoi(tag->value);



More information about the ffmpeg-cvslog mailing list