aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_showinfo.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-07-24 16:26:25 +0200
committerMarton Balint <cus@passwd.hu>2020-09-13 17:51:57 +0200
commit172af0ee516939168c57ef543d44179274f3fe29 (patch)
tree1b76daa8f5d0572a2798203c3b298ed0bdd94ea3 /libavfilter/vf_showinfo.c
parent5673802511e68d2b7ba2c8840e3efcc44aaf9f10 (diff)
downloadffmpeg-172af0ee516939168c57ef543d44179274f3fe29.tar.gz
avfilter/vf_showinfo: use av_timecode_make_smpte_tc_string2
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/vf_showinfo.c')
-rw-r--r--libavfilter/vf_showinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 1be939614d..0ac1f90000 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -114,7 +114,7 @@ static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd)
av_log(ctx, AV_LOG_INFO, " (inverted)");
}
-static void dump_s12m_timecode(AVFilterContext *ctx, AVFrameSideData *sd)
+static void dump_s12m_timecode(AVFilterContext *ctx, AVRational frame_rate, AVFrameSideData *sd)
{
const uint32_t *tc = (const uint32_t *)sd->data;
@@ -125,7 +125,7 @@ static void dump_s12m_timecode(AVFilterContext *ctx, AVFrameSideData *sd)
for (int j = 1; j <= tc[0]; j++) {
char tcbuf[AV_TIMECODE_STR_SIZE];
- av_timecode_make_smpte_tc_string(tcbuf, tc[j], 0);
+ av_timecode_make_smpte_tc_string2(tcbuf, frame_rate, tc[j], 0, 0);
av_log(ctx, AV_LOG_INFO, "timecode - %s%s", tcbuf, j != tc[0] ? ", " : "");
}
}
@@ -380,7 +380,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
dump_stereo3d(ctx, sd);
break;
case AV_FRAME_DATA_S12M_TIMECODE: {
- dump_s12m_timecode(ctx, sd);
+ dump_s12m_timecode(ctx, inlink->frame_rate, sd);
break;
}
case AV_FRAME_DATA_DISPLAYMATRIX: