mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 12:35:09 -04:00
libobs: Fence off unnecessary code due to FFmpeg v6.1 changes
Fixes for using FFmpeg 6.1 due to deprecations. Uses `#if` macros to allow builds for using older versions of FFmpeg. This commit prevents obs from using the "fenced" code if using FFmpeg 6.1, since in FFmpeg commit [1] the "side_data" is added to `AVCodecParameters`, and therefore the existing/following `avcodec_parameters_copy(...)` will account for the metadata. [1]: avcodec/codec_par: add side data to AVCodecParameters https://github.com/FFmpeg/FFmpeg/commit/21d7cc6fa9a26e94965fa71b25655d07568450fe
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f