summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-09-15 23:37:54 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-09-15 23:37:54 +0000
commitd891cbb444f232785e5854e7c8b5496385a0e916 (patch)
tree69bbb5bbf8b9a1d63dda44507d6e351e5d530276 /libavformat
parent68336ea8d4874d6d04fd300b897ea567f49bc8c4 (diff)
Set ID3v1 genre to 0xFF (unknown) by default instead of 0 (Blues).
Originally committed as revision 19866 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mp3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index 93d4be063b..2d24d52992 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -193,6 +193,7 @@ static int id3v1_create_tag(AVFormatContext *s, uint8_t *buf)
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);