diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-08-20 09:54:50 -0700 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-08-20 10:07:09 -0700 |
commit | 37e2d574ddcedc25e32bd963737b033354543789 (patch) | |
tree | 63481cd7658ceaae08cb4af19e15a3922b4548a0 | |
parent | f25f5f8c62ec7728ee7f5dcc8f1abd0dc6235735 (diff) | |
download | ffmpeg-37e2d574ddcedc25e32bd963737b033354543789.tar.gz |
setpts: Add missing inttypes.h #include for PRId64
Also convert a debug av_log() to av_dlog().
(cherry picked from commit a89dd9a72c6e9c3111d6f34d9b08cd624fe76358)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
-rw-r--r-- | libavfilter/setpts.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libavfilter/setpts.c b/libavfilter/setpts.c index be190c0ef7..926fbf7d3d 100644 --- a/libavfilter/setpts.c +++ b/libavfilter/setpts.c @@ -24,6 +24,8 @@ * video presentation timestamp (PTS) modification filter */ +#include <inttypes.h> + #include "libavutil/eval.h" #include "libavutil/internal.h" #include "libavutil/mathematics.h" @@ -141,15 +143,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) d = av_expr_eval(setpts->expr, setpts->var_values, NULL); frame->pts = D2TS(d); -#ifdef DEBUG - av_log(inlink->dst, AV_LOG_DEBUG, - "n:%"PRId64" interlaced:%d pts:%"PRId64" t:%f -> pts:%"PRId64" t:%f\n", - (int64_t)setpts->var_values[VAR_N], - (int)setpts->var_values[VAR_INTERLACED], - in_pts, in_pts * av_q2d(inlink->time_base), - frame->pts, frame->pts * av_q2d(inlink->time_base)); -#endif - + av_dlog(inlink->dst, + "n:%"PRId64" interlaced:%d pts:%"PRId64" t:%f -> pts:%"PRId64" t:%f\n", + (int64_t)setpts->var_values[VAR_N], + (int)setpts->var_values[VAR_INTERLACED], + in_pts, in_pts * av_q2d(inlink->time_base), + frame->pts, frame->pts * av_q2d(inlink->time_base)); if (inlink->type == AVMEDIA_TYPE_VIDEO) { setpts->var_values[VAR_N] += 1.0; |