# HG changeset patch # User jbr # Date 1253057874 0 # Node ID 697f7bdaa43ff52281a6b09a6140494bb1fa582b # Parent 641bd7b1c74618a70592e750e25fa501fa4fbdfe Set ID3v1 genre to 0xFF (unknown) by default instead of 0 (Blues). diff -r 641bd7b1c746 -r 697f7bdaa43f mp3.c --- a/mp3.c Tue Sep 15 16:36:53 2009 +0000 +++ b/mp3.c Tue Sep 15 23:37:54 2009 +0000 @@ -193,6 +193,7 @@ 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);