summaryrefslogtreecommitdiff
path: root/libavformat/dv.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/dv.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/dv.c')
-rw-r--r--libavformat/dv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index d25641daac..3e0d12c0e3 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -315,7 +315,7 @@ static int dv_extract_timecode(DVDemuxContext* c, const uint8_t* frame, char *tc
tc_pack = dv_extract_pack(frame, dv_timecode);
if (!tc_pack)
return 0;
- av_timecode_make_smpte_tc_string(tc, AV_RB32(tc_pack + 1), prevent_df);
+ av_timecode_make_smpte_tc_string2(tc, av_inv_q(c->sys->time_base), AV_RB32(tc_pack + 1), prevent_df, 1);
return 1;
}