obs-ffmpeg: Resolve unused-function warnings

This commit is contained in:
Norihiro Kamae
2024-07-29 23:37:41 +09:00
committed by Ryan Foster
parent f811903e4f
commit e9c440401c
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ obs_to_ffmpeg_video_format(enum video_format format)
}
}
static enum AVChromaLocation
static inline enum AVChromaLocation
determine_chroma_location(enum AVPixelFormat pix_fmt,
enum AVColorSpace colorspace)
{

View File

@@ -565,6 +565,7 @@ static inline const char *safe_str(const char *s)
return s;
}
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(59, 0, 100)
static enum AVCodecID get_codec_id(const char *name, int id)
{
const AVCodec *codec;
@@ -582,7 +583,6 @@ static enum AVCodecID get_codec_id(const char *name, int id)
return codec->id;
}
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(59, 0, 100)
static void set_encoder_ids(struct ffmpeg_data *data)
{
data->output->oformat->video_codec = get_codec_id(