mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs,libobs-opengl,obs-ffmpeg-mux: Calm deprecation warnings on *nix
Calm libobs-opengl deprecation warnings on macOS. Calm FFmpeg deprecation warning with LIBAVFORMAT_VERSION_MAJOR < 59.
This commit is contained in:
@@ -472,7 +472,10 @@ static void create_video_stream(struct ffmpeg_mux *ffm)
|
||||
ffm->video_stream->time_base = context->time_base;
|
||||
#if LIBAVFORMAT_VERSION_MAJOR < 59
|
||||
// codec->time_base may still be used if LIBAVFORMAT_VERSION_MAJOR < 59
|
||||
PRAGMA_WARN_PUSH
|
||||
PRAGMA_WARN_DEPRECATION
|
||||
ffm->video_stream->codec->time_base = context->time_base;
|
||||
PRAGMA_WARN_POP
|
||||
#endif
|
||||
ffm->video_stream->avg_frame_rate = av_inv_q(context->time_base);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user