Commit 2bfd4ff1 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '593aaee9'

* commit '593aaee9':
  setpts: Add missing inttypes.h #include for PRId64

Conflicts:
	libavfilter/setpts.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4f49c39a 593aaee9
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
* video presentation timestamp (PTS) modification filter * video presentation timestamp (PTS) modification filter
*/ */
#include <inttypes.h>
#include "libavutil/eval.h" #include "libavutil/eval.h"
#include "libavutil/internal.h" #include "libavutil/internal.h"
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
...@@ -175,7 +177,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) ...@@ -175,7 +177,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
d = av_expr_eval(setpts->expr, setpts->var_values, NULL); d = av_expr_eval(setpts->expr, setpts->var_values, NULL);
frame->pts = D2TS(d); frame->pts = D2TS(d);
av_log(inlink->dst, AV_LOG_DEBUG, av_dlog(inlink->dst,
"N:%"PRId64" PTS:%s T:%f POS:%s", "N:%"PRId64" PTS:%s T:%f POS:%s",
(int64_t)setpts->var_values[VAR_N], (int64_t)setpts->var_values[VAR_N],
d2istr(setpts->var_values[VAR_PTS]), d2istr(setpts->var_values[VAR_PTS]),
...@@ -183,16 +185,16 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) ...@@ -183,16 +185,16 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
d2istr(setpts->var_values[VAR_POS])); d2istr(setpts->var_values[VAR_POS]));
switch (inlink->type) { switch (inlink->type) {
case AVMEDIA_TYPE_VIDEO: case AVMEDIA_TYPE_VIDEO:
av_log(inlink->dst, AV_LOG_DEBUG, " INTERLACED:%"PRId64, av_dlog(inlink->dst, " INTERLACED:%"PRId64,
(int64_t)setpts->var_values[VAR_INTERLACED]); (int64_t)setpts->var_values[VAR_INTERLACED]);
break; break;
case AVMEDIA_TYPE_AUDIO: case AVMEDIA_TYPE_AUDIO:
av_log(inlink->dst, AV_LOG_DEBUG, " NB_SAMPLES:%"PRId64" NB_CONSUMED_SAMPLES:%"PRId64, av_dlog(inlink->dst, " NB_SAMPLES:%"PRId64" NB_CONSUMED_SAMPLES:%"PRId64,
(int64_t)setpts->var_values[VAR_NB_SAMPLES], (int64_t)setpts->var_values[VAR_NB_SAMPLES],
(int64_t)setpts->var_values[VAR_NB_CONSUMED_SAMPLES]); (int64_t)setpts->var_values[VAR_NB_CONSUMED_SAMPLES]);
break; break;
} }
av_log(inlink->dst, AV_LOG_DEBUG, " -> PTS:%s T:%f\n", d2istr(d), TS2T(d, inlink->time_base)); av_dlog(inlink->dst, " -> PTS:%s T:%f\n", d2istr(d), TS2T(d, inlink->time_base));
if (inlink->type == AVMEDIA_TYPE_VIDEO) { if (inlink->type == AVMEDIA_TYPE_VIDEO) {
setpts->var_values[VAR_N] += 1.0; setpts->var_values[VAR_N] += 1.0;
......
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