浏览代码

obs-ffmpeg: Include channel_layout.h

avcodec.h stopped including channel_layout.h per FFmpeg commit
1be3d8a0cb77 [1]. avformat.h stopped including avcodec.h per FFmpeg
commit e67e02d15672 [2]. As a result, we need to explicitly include
avutil/channel_layout.h when needed. Fixes compilation error against
FFmpeg later than the two mentioned commits.

[1]: https://github.com/FFmpeg/FFmpeg/commit/1be3d8a0cb77f8d34c1f39b47bf5328fe10c82d7
[2]: https://github.com/FFmpeg/FFmpeg/commit/e67e02d15672a87da1b0566e197a1e19dc7e1e33
Ryan Foster 4 年之前
父节点
当前提交
abf1d609d2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      plugins/obs-ffmpeg/obs-ffmpeg-audio-encoders.c

+ 1 - 0
plugins/obs-ffmpeg/obs-ffmpeg-audio-encoders.c

@@ -21,6 +21,7 @@
 #include <util/dstr.h>
 #include <obs-module.h>
 
+#include <libavutil/channel_layout.h>
 #include <libavutil/opt.h>
 #include <libavformat/avformat.h>