mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
setpts: Add missing inttypes.h #include for PRId64
Also convert a debug av_log() to av_dlog().
This commit is contained in:
parent
8fc6a70c21
commit
593aaee953
@ -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"
|
||||||
@ -141,15 +143,12 @@ 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);
|
||||||
|
|
||||||
#ifdef DEBUG
|
av_dlog(inlink->dst,
|
||||||
av_log(inlink->dst, AV_LOG_DEBUG,
|
"n:%"PRId64" interlaced:%d pts:%"PRId64" t:%f -> pts:%"PRId64" t:%f\n",
|
||||||
"n:%"PRId64" interlaced:%d 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],
|
in_pts, in_pts * av_q2d(inlink->time_base),
|
||||||
in_pts, in_pts * av_q2d(inlink->time_base),
|
frame->pts, frame->pts * av_q2d(inlink->time_base));
|
||||||
frame->pts, frame->pts * av_q2d(inlink->time_base));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user