Commit 86be9efa authored by jbr's avatar jbr

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19866 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent be396c2f
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment