]> git.sesse.net Git - ffmpeg/commitdiff
seek-test: use standard format specifiers in snprintf()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 12 Dec 2011 01:03:38 +0000 (02:03 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 12 Dec 2011 01:03:38 +0000 (02:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/seek-test.c

index 519f9492ab8fc91d5cf953a9c5029adfbc3eed5b..34238e0e5d425b1550492da0e46b9fae9fe4112d 100644 (file)
@@ -53,7 +53,7 @@ static void ts_str(char buffer[60], int64_t ts, AVRational base)
         return;
     }
     ts= av_rescale_q(ts, base, (AVRational){1, 1000000});
-    snprintf(buffer, 60, "%c%Ld.%06Ld", ts<0 ? '-' : ' ', FFABS(ts)/1000000, FFABS(ts)%1000000);
+    snprintf(buffer, 60, "%c%"PRId64".%06"PRId64"", ts<0 ? '-' : ' ', FFABS(ts)/1000000, FFABS(ts)%1000000);
 }
 
 int main(int argc, char **argv)