Skip to content

Commit e8e4401

Browse files
committed
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.
1 parent 8068038 commit e8e4401

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/video_decompress/libavcodec.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ set_codec_context_params(struct state_libavcodec_decompress *s)
171171
endptr++;
172172
}
173173
if (errno != 0) {
174-
log_msg(LOG_LEVEL_WARNING, MOD_NAME "Wrong value for thread count value: %s\n", thread_count_opt);
174+
MSG(ERROR, "Wrong value for thread count value: %s\n",
175+
thread_count_opt);
176+
handle_error(EXIT_FAIL_USAGE);
175177
}
176178
}
177179

0 commit comments

Comments
 (0)