diff mbox

[FFmpeg-devel,7/7] dashenc: copy stream frame rate to output stream

Message ID 20171026155840.16816-8-pegro@friiks.de
State Accepted
Commit 3c838e6442bbe1afb7bf82942471342bcea87a27
Headers show

Commit Message

Peter Große Oct. 26, 2017, 3:58 p.m. UTC
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>
---
 libavformat/dashenc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Oct. 29, 2017, 5:19 p.m. UTC | #1
On Thu, Oct 26, 2017 at 05:58:40PM +0200, Peter Große wrote:
> 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>
> ---
>  libavformat/dashenc.c | 1 +
>  1 file changed, 1 insertion(+)

will apply

thx

[...]
diff mbox

Patch

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index b12a37a2e5..2e5cac2384 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -750,6 +750,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;