Merge pull request #1308 from RytoEX/fix-mkv-fps

obs-ffmpeg: Set average framerate in video stream
This commit is contained in:
Jim 2018-06-06 15:52:12 -07:00 committed by GitHub
commit d8a1398466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -316,6 +316,7 @@ static void create_video_stream(struct ffmpeg_mux *ffm)
(AVRational){ffm->params.fps_den, ffm->params.fps_num};
ffm->video_stream->time_base = context->time_base;
ffm->video_stream->avg_frame_rate = av_inv_q(context->time_base);
if (ffm->output->oformat->flags & AVFMT_GLOBALHEADER)
context->flags |= CODEC_FLAG_GLOBAL_H;