diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-27 01:01:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-30 03:40:59 +0100 |
commit | 8bc65685951833cf87dd9575ee900f03cb672d6b (patch) | |
tree | 62032c1a58312897dfaf9509ef329c5530d87f5a | |
parent | 6642a1793511fcd510d39d1a598b127a536b48c9 (diff) | |
download | ffmpeg-8bc65685951833cf87dd9575ee900f03cb672d6b.tar.gz |
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: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 3e5bc7ff6a23014daf2eb0b9a22986753ae2ec4f)
-rw-r--r-- | libavfilter/vf_setpts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_setpts.c b/libavfilter/vf_setpts.c index 0921df7c67..31fa1ef65f 100644 --- a/libavfilter/vf_setpts.c +++ b/libavfilter/vf_setpts.c @@ -116,10 +116,10 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) #ifdef 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], (int)setpts->var_values[VAR_INTERLACED], - (int)setpts->var_values[VAR_POS], + inpicref ->pos, inpicref ->pts, inpicref ->pts * av_q2d(inlink->time_base), outpicref->pts, outpicref->pts * av_q2d(inlink->time_base)); #endif |