]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/interplayvideo.c
fix some potential arithmetic overflows in pred_direct_motion() and
[ffmpeg] / libavcodec / interplayvideo.c
index 48410f0364e4352051ea4021270a77599bd7e548..dec7bc5f66705d1f08def3685ae281f50fed7024 100644 (file)
@@ -47,7 +47,7 @@
 /* debugging support */
 #define DEBUG_INTERPLAY 0
 #if DEBUG_INTERPLAY
-#define debug_interplay printf
+#define debug_interplay(x,...) av_log(NULL, AV_LOG_DEBUG, x, __VA_ARGS__)
 #else
 static inline void debug_interplay(const char *format, ...) { }
 #endif
@@ -846,7 +846,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s)
     }
     if ((s->stream_ptr != s->stream_end) &&
         (s->stream_ptr + 1 != s->stream_end)) {
-        av_log(s->avctx, AV_LOG_ERROR, " Interplay video: decode finished with %zd bytes left over\n",
+        av_log(s->avctx, AV_LOG_ERROR, " Interplay video: decode finished with %td bytes left over\n",
             s->stream_end - s->stream_ptr);
     }
 }