From f32c2b0fbbe82581a62f89d03ea8d08bb1d2853e Mon Sep 17 00:00:00 2001 From: pkv Date: Sat, 6 Nov 2021 19:00:08 -0400 Subject: [PATCH] obs-ffmpeg: Properly name FFmpeg lib used Cosmetic but this was nagging me since I had authored those lines. --- plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c | 4 ++-- plugins/obs-ffmpeg/obs-ffmpeg-output.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c b/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c index ffce3ee33..a6b97ed20 100644 --- a/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c +++ b/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c @@ -452,10 +452,10 @@ static void create_audio_stream(struct ffmpeg_mux *ffm, int idx) context->extradata_size = ffm->audio_header[idx].size; context->channel_layout = av_get_default_channel_layout(context->channels); - //AVlib default channel layout for 4 channels is 4.0 ; fix for quad + //avutil default channel layout for 4 channels is 4.0 ; fix for quad if (context->channels == 4) context->channel_layout = av_get_channel_layout("quad"); - //AVlib default channel layout for 5 channels is 5.0 ; fix for 4.1 + //avutil default channel layout for 5 channels is 5.0 ; fix for 4.1 if (context->channels == 5) context->channel_layout = av_get_channel_layout("4.1"); if (ffm->output->oformat->flags & AVFMT_GLOBALHEADER) diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-output.c b/plugins/obs-ffmpeg/obs-ffmpeg-output.c index 7447e952b..d3637ebbb 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg-output.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg-output.c @@ -345,7 +345,7 @@ static bool create_audio_stream(struct ffmpeg_data *data, int idx) context->channel_layout = av_get_default_channel_layout(context->channels); - //AVlib default channel layout for 5 channels is 5.0 ; fix for 4.1 + //avutil default channel layout for 5 channels is 5.0 ; fix for 4.1 if (aoi.speakers == SPEAKERS_4POINT1) context->channel_layout = av_get_channel_layout("4.1");