43 "NB_CONSUMED_SAMPLES",
140 #define D2TS(d) (isnan(d) ? AV_NOPTS_VALUE : (int64_t)(d))
141 #define TS2D(ts) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts))
142 #define TS2T(ts, tb) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts)*av_q2d(tb))
153 #define d2istr(v) double2int64str((char[BUF_SIZE]){0}, v)
158 int64_t in_pts = frame->
pts;
181 "N:%"PRId64
" PTS:%s T:%f POS:%s",
186 switch (inlink->
type) {
192 av_dlog(inlink->
dst,
" NB_SAMPLES:%"PRId64
" NB_CONSUMED_SAMPLES:%"PRId64,
222 #define OFFSET(x) offsetof(SetPTSContext, x)
223 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
229 #if CONFIG_SETPTS_FILTER
230 #define setpts_options options
233 static const AVFilterPad avfilter_vf_setpts_inputs[] = {
243 static const AVFilterPad avfilter_vf_setpts_outputs[] = {
258 .priv_class = &setpts_class,
260 .
inputs = avfilter_vf_setpts_inputs,
261 .
outputs = avfilter_vf_setpts_outputs,
265 #if CONFIG_ASETPTS_FILTER
267 #define asetpts_options options
294 .priv_class = &asetpts_class,