summaryrefslogtreecommitdiff
path: root/libavformat/wsddec.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/wsddec.c
parent172af0ee516939168c57ef543d44179274f3fe29 (diff)
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/wsddec.c')
-rw-r--r--libavformat/wsddec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wsddec.c b/libavformat/wsddec.c
index 2313b0ec4b..74db6acdab 100644
--- a/libavformat/wsddec.c
+++ b/libavformat/wsddec.c
@@ -120,7 +120,7 @@ static int wsd_read_header(AVFormatContext *s)
}
avio_skip(pb, 4);
- av_timecode_make_smpte_tc_string(playback_time, avio_rb32(pb), 0);
+ av_timecode_make_smpte_tc_string2(playback_time, (AVRational){1,1}, avio_rb32(pb) & 0x00ffffffU, 1, 1);
av_dict_set(&s->metadata, "playback_time", playback_time, 0);
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;