summaryrefslogtreecommitdiff
path: root/libavformat/id3v2.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2015-11-11 17:40:27 +0100
committerDiego Biurrun <diego@biurrun.de>2016-10-28 13:28:36 +0200
commit3ec6f855d0f21d90a0494fb798c4cf203fdb3db0 (patch)
tree7f1d50ca44761d971475712d9dc8ae86fb7902cc /libavformat/id3v2.c
parent7a2b2b6a92c4b528ecb640790eca0aa790d858f4 (diff)
srt: Adjust signedness of sscanf format strings
Fixes several warnings from -Wformat.
Diffstat (limited to 'libavformat/id3v2.c')
-rw-r--r--libavformat/id3v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 5e9825de7d..3f43b4aa8b 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -276,7 +276,7 @@ static void read_ttag(AVFormatContext *s, AVIOContext *pb, int taglen,
}
if (!(strcmp(key, "TCON") && strcmp(key, "TCO")) &&
- (sscanf(dst, "(%d)", &genre) == 1 || sscanf(dst, "%d", &genre) == 1) &&
+ (sscanf(dst, "(%u)", &genre) == 1 || sscanf(dst, "%u", &genre) == 1) &&
genre <= ID3v1_GENRE_MAX) {
av_freep(&dst);
dst = av_strdup(ff_id3v1_genre_str[genre]);