diff options
author | Richard Antalik <richardantalik@gmail.com> | 2020-10-19 08:17:13 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2020-10-19 08:17:13 +0300 |
commit | b2e067d98ccf43657404b917b13ad5275f1c96e2 (patch) | |
tree | 2e03e49929534e99b09a7fc31460f905b0fa6a05 /source/blender/blenkernel/intern | |
parent | 94364be80adcc5432112f96ddc06528161a1ad43 (diff) |
Fix T68343: Rendered video plays at 600fps
Field time_base of video stream must be set for some containers,
otherwise avformat_write_header() will set it to default values.
Rendered file in such case won't be played at desired frame rate.
See init_muxer() in mux.c in ffpmeg sources.
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D9213
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/writeffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c index 7a8fd2dc43b..e6adad765c3 100644 --- a/source/blender/blenkernel/intern/writeffmpeg.c +++ b/source/blender/blenkernel/intern/writeffmpeg.c @@ -603,6 +603,8 @@ static AVStream *alloc_video_stream(FFMpegContext *context, c->time_base.num = (int)num; } + st->time_base = c->time_base; + c->gop_size = context->ffmpeg_gop_size; c->max_b_frames = context->ffmpeg_max_b_frames; |