mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 22:10:34 +00:00
Set ID3v1 genre to 0xFF (unknown) by default instead of 0 (Blues).
Originally committed as revision 19866 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
68336ea8d4
commit
d891cbb444
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user