summaryrefslogtreecommitdiff
path: root/libavfilter/vf_showinfo.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-07-12 18:35:13 +0200
committerAnton Khirnov <anton@khirnov.net>2022-07-19 12:27:18 +0200
commitecd0a7c5bd105367e8c16c2d59648b96efccec18 (patch)
treea54fcd965b8dcb76eaba0bbf3dc2d1d2e3c46612 /libavfilter/vf_showinfo.c
parent9c0401bd5901e9bb2cd492fafebd591bcfd77dac (diff)
downloadffmpeg-ecd0a7c5bd105367e8c16c2d59648b96efccec18.tar.gz
lavfi/vf_showinfo: print frame durations
Diffstat (limited to 'libavfilter/vf_showinfo.c')
-rw-r--r--libavfilter/vf_showinfo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 6efcafce28..2c8514fc80 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -709,10 +709,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
}
av_log(ctx, AV_LOG_INFO,
- "n:%4"PRId64" pts:%7s pts_time:%-7s pos:%9"PRId64" "
+ "n:%4"PRId64" pts:%7s pts_time:%-7s duration:%7"PRId64
+ " duration_time:%-7s pos:%9"PRId64" "
"fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c ",
inlink->frame_count_out,
- av_ts2str(frame->pts), av_ts2timestr(frame->pts, &inlink->time_base), frame->pkt_pos,
+ av_ts2str(frame->pts), av_ts2timestr(frame->pts, &inlink->time_base),
+ frame->duration, av_ts2timestr(frame->duration, &inlink->time_base),
+ frame->pkt_pos,
desc->name,
frame->sample_aspect_ratio.num, frame->sample_aspect_ratio.den,
frame->width, frame->height,