Skip to content
Snippets Groups Projects
Commit 70026be8 authored by Luca Barbato's avatar Luca Barbato
Browse files

avprobe: fix function prototype

Make opt_output_format return the correct value.
parent 39e29aa0
No related branches found
No related tags found
No related merge requests found
...@@ -757,7 +757,7 @@ static int opt_format(const char *opt, const char *arg) ...@@ -757,7 +757,7 @@ static int opt_format(const char *opt, const char *arg)
return 0; return 0;
} }
static void opt_output_format(const char *opt, const char *arg) static int opt_output_format(const char *opt, const char *arg)
{ {
if (!strcmp(arg, "json")) { if (!strcmp(arg, "json")) {
...@@ -781,8 +781,9 @@ static void opt_output_format(const char *opt, const char *arg) ...@@ -781,8 +781,9 @@ static void opt_output_format(const char *opt, const char *arg)
print_string = ini_print_string; print_string = ini_print_string;
} else { } else {
av_log(NULL, AV_LOG_ERROR, "Unsupported formatter %s\n", arg); av_log(NULL, AV_LOG_ERROR, "Unsupported formatter %s\n", arg);
exit(1); return AVERROR(EINVAL);
} }
return 0;
} }
static int opt_show_format_entry(const char *opt, const char *arg) static int opt_show_format_entry(const char *opt, const char *arg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment