[FFmpeg-cvslog] libmodplug: fix sz type

Paul B Mahol git at videolan.org
Fri May 17 18:13:03 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri May 17 14:19:18 2013 +0000| [d26f637b020e7fab629474502d69ee73e29dace2] | committer: Paul B Mahol

libmodplug: fix sz type

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d26f637b020e7fab629474502d69ee73e29dace2
---

 libavformat/libmodplug.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c
index aa8edcc..193c3b2 100644
--- a/libavformat/libmodplug.c
+++ b/libavformat/libmodplug.c
@@ -166,14 +166,14 @@ static int modplug_read_header(AVFormatContext *s)
     AVIOContext *pb = s->pb;
     ModPlug_Settings settings;
     ModPlugContext *modplug = s->priv_data;
-    int sz = avio_size(pb);
+    int64_t sz = avio_size(pb);
 
     if (sz < 0) {
         av_log(s, AV_LOG_WARNING, "Could not determine file size\n");
         sz = modplug->max_size;
     } else if (modplug->max_size && sz > modplug->max_size) {
         sz = modplug->max_size;
-        av_log(s, AV_LOG_WARNING, "Max file size reach%s, allocating %dB "
+        av_log(s, AV_LOG_WARNING, "Max file size reach%s, allocating %"PRIi64"B "
                "but demuxing is likely to fail due to incomplete buffer\n",
                sz == FF_MODPLUG_DEF_FILE_SIZE ? " (see -max_size)" : "", sz);
     }



More information about the ffmpeg-cvslog mailing list