diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-04-11 14:58:22 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-04-11 14:58:22 +0200 |
commit | a6b1d13beb15fe7e70cc024598582ac64a51f70d (patch) | |
tree | 117699d8dec6a5b8f03e98552ee79e2a609bcdaa | |
parent | 52688dad72542b7f3f7bce7a8ff0d7fd7827c5ea (diff) |
Update errmsg, paranoid error handling
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<AVFilterContext*> &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; } |