[FFmpeg-devel] [PATCH] replace %td by more standard %zd

Reimar Döffinger Reimar.Doeffinger
Wed Sep 30 15:17:12 CEST 2009


Hello,
personally I am more in favour of casting to int and using %i, but at
least %zd is better supported it seems (e.g. Haiku compiler).
Index: libavcodec/mpeg12.c
===================================================================
--- libavcodec/mpeg12.c (revision 20091)
+++ libavcodec/mpeg12.c (working copy)
@@ -2329,7 +2329,7 @@
         input_size = buf_end - buf_ptr;
 
         if(avctx->debug & FF_DEBUG_STARTCODE){
-            av_log(avctx, AV_LOG_DEBUG, "%3X at %td left %d\n", start_code, buf_ptr-buf, input_size);
+            av_log(avctx, AV_LOG_DEBUG, "%3X at %zd left %d\n", start_code, buf_ptr-buf, input_size);
         }
 
         /* prepare data for next start code */




More information about the ffmpeg-devel mailing list