explicitly set timebase for video stream (#6005)

fixes #5965
This commit is contained in:
feos 2022-04-23 19:23:53 +03:00 committed by GitHub
parent 4a9995ab9f
commit 1382035d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());