obs-ffmpeg: Further FFmpeg deprecations fixes for FFmpeg 4.4+

avcodec.h stopped including channel_layout.h per FFmpeg commit
1be3d8a0cb77 [1]. Fixes compilation error on macOS against
FFmpeg later than the mentioned commit.
[1] 1be3d8a0cb
This commit is contained in:
pkv 2021-12-17 20:52:11 +01:00 committed by Matt Gajownik
parent e7837e30ce
commit d78971b4db
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@
#include <util/dstr.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/channel_layout.h>
#define ANSI_COLOR_RED "\x1b[0;91m"
#define ANSI_COLOR_MAGENTA "\x1b[0;95m"

View File

@ -25,6 +25,7 @@
#include "obs-ffmpeg-output.h"
#include "obs-ffmpeg-formats.h"
#include "obs-ffmpeg-compat.h"
#include <libavutil/channel_layout.h>
struct ffmpeg_output {
obs_output_t *output;