obs-ffmpeg: Include avcodec header for AVCodecContext

FFmpeg commit e67e02d15672 [1] drops avcodec.h from avformat.h includes.
Therefore we need to include it explicitly.

[1]: https://github.com/FFmpeg/FFmpeg/commit/e67e02d15672a87da1b0566e197a1e19dc7e1e33
     lavf/avformat.h: drop the avcodec.h include
This commit is contained in:
Ryan Foster
2021-11-06 18:57:35 -04:00
parent 6d1433f228
commit 08547a1696
4 changed files with 5 additions and 0 deletions
@@ -27,6 +27,7 @@
#include "ffmpeg-mux.h"
#include <util/dstr.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#define ANSI_COLOR_RED "\x1b[0;91m"
+2
View File
@@ -1,5 +1,7 @@
#pragma once
#include <libavcodec/avcodec.h>
static inline int64_t rescale_ts(int64_t val, AVCodecContext *context,
AVRational new_base)
{
+1
View File
@@ -24,6 +24,7 @@
#include <libavutil/opt.h>
#include <libavutil/pixdesc.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include "obs-ffmpeg-formats.h"
+1
View File
@@ -2,6 +2,7 @@
#include <libavutil/opt.h>
#include <libavutil/pixdesc.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>