]> git.sesse.net Git - ffmpeg/commitdiff
au: use %u when printing id and channels since they are unsigned
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 23 Dec 2012 18:39:47 +0000 (13:39 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 9 Jan 2013 16:52:57 +0000 (11:52 -0500)
libavformat/au.c

index 27feef7e399fbc7a405322ff377545a11dcc3df5..fa2e0c45133f5b1fa0010ee8047690e0a11fc994 100644 (file)
@@ -89,7 +89,7 @@ static int au_read_header(AVFormatContext *s)
     codec = ff_codec_get_id(codec_au_tags, id);
 
     if (codec == AV_CODEC_ID_NONE) {
-        av_log_ask_for_sample(s, "unknown or unsupported codec tag: %d\n", id);
+        av_log_ask_for_sample(s, "unknown or unsupported codec tag: %u\n", id);
         return AVERROR_PATCHWELCOME;
     }
 
@@ -100,7 +100,7 @@ static int au_read_header(AVFormatContext *s)
     }
 
     if (channels == 0 || channels >= INT_MAX / (BLOCK_SIZE * bps >> 3)) {
-        av_log(s, AV_LOG_ERROR, "Invalid number of channels %d\n", channels);
+        av_log(s, AV_LOG_ERROR, "Invalid number of channels %u\n", channels);
         return AVERROR_INVALIDDATA;
     }