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.
This commit is contained in:
Martin Pulec
2025-04-10 11:25:00 +02:00
parent 8068038cc3
commit e8e44012be

View File

@@ -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);
}
}