diff --git a/libavformat/mov.c b/libavformat/mov.c
index d8f84bfdb0f1bd25736fefc2df1df3a2ca8b05a1..fc040fa161cc33ba408043c3787476f4a9ec2961 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1717,7 +1717,7 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
         av_log(s, AV_LOG_ERROR, "moov atom not found\n");
         return -1;
     }
-    dprintf(mov->fc, "on_parse_exit_offset=%d\n", (int) url_ftell(pb));
+    dprintf(mov->fc, "on_parse_exit_offset=%lld\n", url_ftell(pb));
 
     return 0;
 }