diff options
author | Peter Große <pegro@friiks.de> | 2017-10-26 17:58:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-10-29 18:28:40 +0100 |
commit | 3c838e6442bbe1afb7bf82942471342bcea87a27 (patch) | |
tree | 60aa98aec4ddad545c7fb9ed2ac6b6cbf5e8fdde /libavformat/dashenc.c | |
parent | fe334712ddc633dba3774beb56579381a00d59bf (diff) | |
download | ffmpeg-3c838e6442bbe1afb7bf82942471342bcea87a27.tar.gz |
dashenc: copy stream frame rate to output stream
Leads to setting of DefaultDuration in Matroska muxer based on frame rate instead of timebase.
Fixes playback in Chrome.
Signed-off-by: Peter Große <pegro@friiks.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r-- | libavformat/dashenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 82381b67a9..7813f4485a 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -752,6 +752,7 @@ static int dash_init(AVFormatContext *s) avcodec_parameters_copy(st->codecpar, s->streams[i]->codecpar); st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio; st->time_base = s->streams[i]->time_base; + st->avg_frame_rate = s->streams[i]->avg_frame_rate; ctx->avoid_negative_ts = s->avoid_negative_ts; ctx->flags = s->flags; |