Commit 8cafe761 authored by mru's avatar mru

ffplay: use correct format specifiers in printf()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22447 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d6a7300c
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
*/ */
#include "config.h" #include "config.h"
#include <inttypes.h>
#include <math.h> #include <math.h>
#include <limits.h> #include <limits.h>
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
...@@ -1256,7 +1257,7 @@ static void video_refresh_timer(void *opaque) ...@@ -1256,7 +1257,7 @@ static void video_refresh_timer(void *opaque)
av_diff = 0; av_diff = 0;
if (is->audio_st && is->video_st) if (is->audio_st && is->video_st)
av_diff = get_audio_clock(is) - get_video_clock(is); av_diff = get_audio_clock(is) - get_video_clock(is);
printf("%7.2f A-V:%7.3f aq=%5dKB vq=%5dKB sq=%5dB f=%Ld/%Ld \r", printf("%7.2f A-V:%7.3f aq=%5dKB vq=%5dKB sq=%5dB f=%"PRId64"/%"PRId64" \r",
get_master_clock(is), av_diff, aqsize / 1024, vqsize / 1024, sqsize, is->faulty_dts, is->faulty_pts); get_master_clock(is), av_diff, aqsize / 1024, vqsize / 1024, sqsize, is->faulty_dts, is->faulty_pts);
fflush(stdout); fflush(stdout);
last_time = cur_time; last_time = cur_time;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment