summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPeter Große <pegro@friiks.de>2017-10-26 18:02:05 +0200
committerLuca Barbato <lu_zero@gentoo.org>2017-10-27 19:52:48 +0200
commit91760a934055ab06812885ab5ec1a97a8db6d217 (patch)
treef607635acb2ad5dfb7a82c7af885d0ddb821095c /libavformat
parent4723c6226aa1ece4099338cc9b38a9cef4fa4846 (diff)
downloadffmpeg-streaming-91760a934055ab06812885ab5ec1a97a8db6d217.zip
ffmpeg-streaming-91760a934055ab06812885ab5ec1a97a8db6d217.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: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/dashenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 4f8d7d8..23d33db 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)
OpenPOWER on IntegriCloud