diff --git a/src/core/dumping/ffmpeg_backend.cpp b/src/core/dumping/ffmpeg_backend.cpp index 292207b4b8..28c33639b0 100644 --- a/src/core/dumping/ffmpeg_backend.cpp +++ b/src/core/dumping/ffmpeg_backend.cpp @@ -156,6 +156,8 @@ bool FFmpegVideoStream::Init(FFmpegMuxer& muxer, const Layout::FramebufferLayout return false; } + stream->time_base = codec_context->time_base; + // Allocate frames current_frame.reset(av_frame_alloc()); scaled_frame.reset(av_frame_alloc());