From e8e44012be33ec0ac33f07d66d000167c2e18eeb Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 10 Apr 2025 11:25:00 +0200 Subject: [PATCH] vdec/lavc: for wrong param write error not warn For incorrect param lavd-thread-count write an error and if fatal error handling is enabled, also exit. --- src/video_decompress/libavcodec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video_decompress/libavcodec.c b/src/video_decompress/libavcodec.c index 8e5922da8..3aaac6a4d 100644 --- a/src/video_decompress/libavcodec.c +++ b/src/video_decompress/libavcodec.c @@ -171,7 +171,9 @@ set_codec_context_params(struct state_libavcodec_decompress *s) endptr++; } if (errno != 0) { - log_msg(LOG_LEVEL_WARNING, MOD_NAME "Wrong value for thread count value: %s\n", thread_count_opt); + MSG(ERROR, "Wrong value for thread count value: %s\n", + thread_count_opt); + handle_error(EXIT_FAIL_USAGE); } }