mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
Merge pull request #1308 from RytoEX/fix-mkv-fps
obs-ffmpeg: Set average framerate in video stream
This commit is contained in:
commit
d8a1398466
|
@ -316,6 +316,7 @@ static void create_video_stream(struct ffmpeg_mux *ffm)
|
||||||
(AVRational){ffm->params.fps_den, ffm->params.fps_num};
|
(AVRational){ffm->params.fps_den, ffm->params.fps_num};
|
||||||
|
|
||||||
ffm->video_stream->time_base = context->time_base;
|
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)
|
if (ffm->output->oformat->flags & AVFMT_GLOBALHEADER)
|
||||||
context->flags |= CODEC_FLAG_GLOBAL_H;
|
context->flags |= CODEC_FLAG_GLOBAL_H;
|
||||||
|
|
Loading…
Reference in a new issue