[FFmpeg-cvslog] dashenc: copy stream frame rate to output stream

Peter Große git at videolan.org
Sun Nov 12 05:18:44 EET 2017


ffmpeg | branch: master | Peter Große <pegro at friiks.de> | Thu Oct 26 18:02:05 2017 +0200| [91760a934055ab06812885ab5ec1a97a8db6d217] | committer: Luca Barbato

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 at friiks.de>
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

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

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

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 4f8d7d85dc..23d33dbb05 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -870,6 +870,7 @@ static int dash_write_header(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;
 
         if ((ret = avio_open_dyn_buf(&ctx->pb)) < 0)



More information about the ffmpeg-cvslog mailing list