Commit 3e5bc7ff authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Janne Grunau

In the start_frame() debug log, print the reference pos value rather than the...

In the start_frame() debug log, print the reference pos value rather than the evaluated value converted to int.

That's required because -1 is evaluated as NAN, which converted back
to int looks like a random number, this is especially annoying when
debugging sources with undefined pos (as the video4linux2 device).
Signed-off-by: 's avatarJanne Grunau <janne-ffmpeg@jannau.net>
parent 9d4bdcb7
...@@ -116,10 +116,10 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) ...@@ -116,10 +116,10 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
#ifdef DEBUG #ifdef DEBUG
av_log(inlink->dst, AV_LOG_DEBUG, av_log(inlink->dst, AV_LOG_DEBUG,
"n:%"PRId64" interlaced:%d pos:%d pts:%"PRId64" t:%f -> pts:%"PRId64" t:%f\n", "n:%"PRId64" interlaced:%d pos:%"PRId64" pts:%"PRId64" t:%f -> pts:%"PRId64" t:%f\n",
(int64_t)setpts->var_values[VAR_N], (int64_t)setpts->var_values[VAR_N],
(int)setpts->var_values[VAR_INTERLACED], (int)setpts->var_values[VAR_INTERLACED],
(int)setpts->var_values[VAR_POS], inpicref ->pos,
inpicref ->pts, inpicref ->pts * av_q2d(inlink->time_base), inpicref ->pts, inpicref ->pts * av_q2d(inlink->time_base),
outpicref->pts, outpicref->pts * av_q2d(inlink->time_base)); outpicref->pts, outpicref->pts * av_q2d(inlink->time_base));
#endif #endif
......
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