summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cuttime.c3
-rw-r--r--src/findcut.c3
-rw-r--r--src/overlap.c3
-rw-r--r--src/util.c3
4 files changed, 8 insertions, 4 deletions
diff --git a/src/cuttime.c b/src/cuttime.c
index 1735959..53fbae3 100644
--- a/src/cuttime.c
+++ b/src/cuttime.c
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
+#include <inttypes.h>
#include <unistd.h>
#include "video_decode.h"
@@ -99,7 +100,7 @@ main(int argc, char **argv)
printf("%d\t", i);
if (time_flag)
- printf("%lld\t", frame_b->dts);
+ printf("%" PRId64 "\t", frame_b->dts);
if (average_flag) /* print frame average */
printf("%f", frame_average(frame_a));
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 <stdio.h>
#include <stdlib.h>
#include <stdint.h>
+#include <inttypes.h>
#include <unistd.h>
#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);
diff --git a/src/overlap.c b/src/overlap.c
index 38b0c3b..a9d4bf7 100644
--- a/src/overlap.c
+++ b/src/overlap.c
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
+#include <inttypes.h>
#include <unistd.h>
#include "video_decode.h"
@@ -76,7 +77,7 @@ main(int argc, char **argv)
}
if (diff_flag)
- printf("%lld %f\n", cur_frame->dts, diff);
+ printf("%" PRId64 " %f\n", cur_frame->dts, diff);
if (cur_frame->dts > duration)
break;
diff --git a/src/util.c b/src/util.c
index 3f7702f..ff00370 100644
--- a/src/util.c
+++ b/src/util.c
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#include <inttypes.h>
#include "video_decode.h"
#include "util.h"
@@ -134,7 +135,7 @@ print_time(int64_t msec) {
int ss = msec / 1000;
msec -= ss * 1000;
- printf("%02d:%02d:%02d.%03lld", hh, mm, ss, msec);
+ printf("%02d:%02d:%02d.%03" PRId64, hh, mm, ss, msec);
}
int