mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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>
This commit is contained in:
parent
fe334712dd
commit
3c838e6442
@ -752,6 +752,7 @@ static int dash_init(AVFormatContext *s)
|
|||||||
avcodec_parameters_copy(st->codecpar, s->streams[i]->codecpar);
|
avcodec_parameters_copy(st->codecpar, s->streams[i]->codecpar);
|
||||||
st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
|
st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
|
||||||
st->time_base = s->streams[i]->time_base;
|
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->avoid_negative_ts = s->avoid_negative_ts;
|
||||||
ctx->flags = s->flags;
|
ctx->flags = s->flags;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user