explicitly set timebase for video stream (#6005)

fixes #5965
This commit is contained in:
feos authored and GitHub committed 2022-04-23 21:53:53 +05:30
1 parent 4a9995ab9f
commit 1382035d4d
1 file changed
+2
+2
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());