summaryrefslogtreecommitdiff
path: root/libavformat/dump.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-07-24 16:26:58 +0200
committerMarton Balint <cus@passwd.hu>2020-09-13 17:51:57 +0200
commit9b434bea757fd3c41156703326131063f0cbae18 (patch)
tree6389b3da283d035bbc0fb9542ec32dba801e05e4 /libavformat/dump.c
parent172af0ee516939168c57ef543d44179274f3fe29 (diff)
downloadffmpeg-9b434bea757fd3c41156703326131063f0cbae18.tar.gz
avformat: use av_timecode_make_smpte_tc_string2
WSD format has no frames stored for playback time. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r--libavformat/dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c
index 6d29d85d1f..fe628010d3 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -408,7 +408,7 @@ static void dump_dovi_conf(void *ctx, const AVPacketSideData *sd)
dovi->dv_bl_signal_compatibility_id);
}
-static void dump_s12m_timecode(void *ctx, const AVPacketSideData *sd)
+static void dump_s12m_timecode(void *ctx, const AVStream *st, const AVPacketSideData *sd)
{
const uint32_t *tc = (const uint32_t *)sd->data;
@@ -419,7 +419,7 @@ static void dump_s12m_timecode(void *ctx, const AVPacketSideData *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, st->avg_frame_rate, tc[j], 0, 0);
av_log(ctx, AV_LOG_INFO, "timecode - %s%s", tcbuf, j != tc[0] ? ", " : "");
}
}
@@ -492,7 +492,7 @@ static void dump_sidedata(void *ctx, const AVStream *st, const char *indent)
break;
case AV_PKT_DATA_S12M_TIMECODE:
av_log(ctx, AV_LOG_INFO, "SMPTE ST 12-1:2014: ");
- dump_s12m_timecode(ctx, sd);
+ dump_s12m_timecode(ctx, st, sd);
break;
default:
av_log(ctx, AV_LOG_INFO,