ffmpeg | branch: master | Peter Große <pe...@friiks.de> | Thu Oct 26 17:58:40 
2017 +0200| [3c838e6442bbe1afb7bf82942471342bcea87a27] | committer: Michael 
Niedermayer

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 <pe...@friiks.de>
Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3c838e6442bbe1afb7bf82942471342bcea87a27
---

 libavformat/dashenc.c | 1 +
 1 file changed, 1 insertion(+)

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;
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to