From e7b35c435f44018351cb972904039665783be410 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sat, 2 Feb 2013 11:36:51 +0100 Subject: Use PRId64 for int64_t in printfs Using %lld is not portable, since it depends on the architecture whether to use %ld or %lld. The inttypes.h header thus defines macros that propose the correct one. --- src/findcut.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/findcut.c') diff --git a/src/findcut.c b/src/findcut.c index 2b2bc71..ebb18e5 100644 --- a/src/findcut.c +++ b/src/findcut.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include "video_decode.h" @@ -72,7 +73,7 @@ main(int argc, char **argv) if (diff <= threshold || diff_flag) { if (time_flag) - printf("%lld", cur_frame->dts); + printf("%" PRId64, cur_frame->dts); else print_time(cur_frame->dts); -- cgit