OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2121b16
)
handle id3v2 'genre' tag formated as '%d'
author
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 22 Mar 2009 16:10:37 +0000
(16:10 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 22 Mar 2009 16:10:37 +0000
(16:10 +0000)
Originally committed as revision 18145 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mp3.c
patch
|
blob
|
history
diff --git
a/libavformat/mp3.c
b/libavformat/mp3.c
index
fa383d6
..
b032f0c
100644
(file)
--- a/
libavformat/mp3.c
+++ b/
libavformat/mp3.c
@@
-198,7
+198,8
@@
static void id3v2_read_ttag(AVFormatContext *s, int taglen, const char *key)
}
if (!strcmp(key, "genre")
- && sscanf(dst, "(%d)", &genre) == 1 && genre <= ID3v1_GENRE_MAX)
+ && (sscanf(dst, "(%d)", &genre) == 1 || sscanf(dst, "%d", &genre) == 1)
+ && genre <= ID3v1_GENRE_MAX)
av_strlcpy(dst, id3v1_genre_str[genre], sizeof(dst));
if (*dst)