提交 bd51c013 编写于 作者: A Aurelien Jacobs

handle id3v2 'genre' tag formated as '%d'

Originally committed as revision 18145 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 2121b160
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册