summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Große <pegro@friiks.de>2017-10-26 17:58:40 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-10-29 18:28:40 +0100
commit3c838e6442bbe1afb7bf82942471342bcea87a27 (patch)
tree60aa98aec4ddad545c7fb9ed2ac6b6cbf5e8fdde
parentfe334712ddc633dba3774beb56579381a00d59bf (diff)
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>
-rw-r--r--libavformat/dashenc.c1
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;