diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-05-25 15:19:50 -0700 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-05-25 16:41:47 -0700 |
commit | 70026be8e52460776f8023f35cdad3e854e752ae (patch) | |
tree | bbdff4dedfaa4c64b9376421eb57a238422baf97 /avprobe.c | |
parent | 39e29aa019fe076f96a1461a194e82bc20f6e9ef (diff) | |
download | ffmpeg-70026be8e52460776f8023f35cdad3e854e752ae.tar.gz |
avprobe: fix function prototype
Make opt_output_format return the correct value.
Diffstat (limited to 'avprobe.c')
-rw-r--r-- | avprobe.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -757,7 +757,7 @@ static int opt_format(const char *opt, const char *arg) 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")) { @@ -781,8 +781,9 @@ static void opt_output_format(const char *opt, const char *arg) print_string = ini_print_string; } else { 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) |