From a6b1d13beb15fe7e70cc024598582ac64a51f70d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 11 Apr 2024 14:58:22 +0200 Subject: Update errmsg, paranoid error handling --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b3b206c..2d0c719 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1258,6 +1258,7 @@ static bool is_livestream_path(const char *str) { static int init_filter_graph(AVCodecContext *audio_codec_context, AVFilterGraph **graph, AVFilterContext **sink, std::vector &src_filter_ctx, size_t num_sources) { char ch_layout[64]; int err = 0; + ch_layout[0] = '\0'; AVFilterGraph *filter_graph = avfilter_graph_alloc(); if (!filter_graph) { @@ -1716,7 +1717,7 @@ int main(int argc, char **argv) { } if(audio_codec == AudioCodec::OPUS || audio_codec == AudioCodec::FLAC) { - fprintf(stderr, "Warning: opus and flac audio codecs has been temporary disabled, using aac audio codec instead\n"); + fprintf(stderr, "Warning: opus and flac audio codecs are temporary disabled, using aac audio codec instead\n"); audio_codec_to_use = "aac"; audio_codec = AudioCodec::AAC; } -- cgit v1.2.3