X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwsddec.c;h=169a96c71fe34b8d140fd881c6557c634acbfdf0;hb=92769f260da8bf38956212cc6a26f98bcf80c6c7;hp=2313b0ec4b767ff42e1a5d05cebf184caef03447;hpb=f6d1b18b3d58cd8f06eea653c4a6e22e4b9245e6;p=ffmpeg diff --git a/libavformat/wsddec.c b/libavformat/wsddec.c index 2313b0ec4b7..169a96c71fe 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; @@ -162,7 +162,7 @@ static int wsd_read_header(AVFormatContext *s) } FF_RAW_DEMUXER_CLASS(wsd) -AVInputFormat ff_wsd_demuxer = { +const AVInputFormat ff_wsd_demuxer = { .name = "wsd", .long_name = NULL_IF_CONFIG_SMALL("Wideband Single-bit Data (WSD)"), .read_probe = wsd_probe,