mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
ffplay: in video_thread(), use av_dlog() for timestamp logging.
Disable logging of rescaled timestamps if DEBUG is not enabled.
Avoid debug log spamming with -loglevel debug.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 13156f40e1
)
This commit is contained in:
parent
e5e3897b64
commit
97b925ea81
11
ffplay.c
11
ffplay.c
@ -58,6 +58,7 @@
|
||||
const char program_name[] = "FFplay";
|
||||
const int program_birth_year = 2003;
|
||||
|
||||
//#define DEBUG
|
||||
//#define DEBUG_SYNC
|
||||
|
||||
#define MAX_QUEUE_SIZE (15 * 1024 * 1024)
|
||||
@ -1853,12 +1854,12 @@ static int video_thread(void *arg)
|
||||
}
|
||||
|
||||
if (av_cmp_q(tb, is->video_st->time_base)) {
|
||||
int64_t pts1 = pts_int;
|
||||
av_unused int64_t pts1 = pts_int;
|
||||
pts_int = av_rescale_q(pts_int, tb, is->video_st->time_base);
|
||||
av_log(NULL, AV_LOG_DEBUG, "video_thread(): "
|
||||
"tb:%d/%d pts:%"PRId64" -> tb:%d/%d pts:%"PRId64"\n",
|
||||
tb.num, tb.den, pts1,
|
||||
is->video_st->time_base.num, is->video_st->time_base.den, pts_int);
|
||||
av_dlog(NULL, "video_thread(): "
|
||||
"tb:%d/%d pts:%"PRId64" -> tb:%d/%d pts:%"PRId64"\n",
|
||||
tb.num, tb.den, pts1,
|
||||
is->video_st->time_base.num, is->video_st->time_base.den, pts_int);
|
||||
}
|
||||
#else
|
||||
ret = get_video_frame(is, frame, &pts_int, &pkt);
|
||||
|
Loading…
Reference in New Issue
Block a user