Browse code

libmodplug: fix sz type

Signed-off-by: Paul B Mahol <onemda@gmail.com>

Paul B Mahol authored on 2013/05/17 23:19:18
Showing 1 changed files
... ...
@@ -166,14 +166,14 @@ static int modplug_read_header(AVFormatContext *s)
166 166
     AVIOContext *pb = s->pb;
167 167
     ModPlug_Settings settings;
168 168
     ModPlugContext *modplug = s->priv_data;
169
-    int sz = avio_size(pb);
169
+    int64_t sz = avio_size(pb);
170 170
 
171 171
     if (sz < 0) {
172 172
         av_log(s, AV_LOG_WARNING, "Could not determine file size\n");
173 173
         sz = modplug->max_size;
174 174
     } else if (modplug->max_size && sz > modplug->max_size) {
175 175
         sz = modplug->max_size;
176
-        av_log(s, AV_LOG_WARNING, "Max file size reach%s, allocating %dB "
176
+        av_log(s, AV_LOG_WARNING, "Max file size reach%s, allocating %"PRIi64"B "
177 177
                "but demuxing is likely to fail due to incomplete buffer\n",
178 178
                sz == FF_MODPLUG_DEF_FILE_SIZE ? " (see -max_size)" : "", sz);
179 179
     }