Skip to content
Snippets Groups Projects
Commit 72b9b34d authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

Newly introduced check_encoder_option failed unconditionally instead of only...

Newly introduced check_encoder_option failed unconditionally instead of only when you used the wrong options.
parent 7664d811
No related branches found
No related tags found
No related merge requests found
...@@ -88,8 +88,8 @@ static void check_decoder_option(int encode_only, const char *opt) ...@@ -88,8 +88,8 @@ static void check_decoder_option(int encode_only, const char *opt)
if (encode_only) if (encode_only)
{ {
fprintf(stderr, "option %s is only for decoding\n", opt); fprintf(stderr, "option %s is only for decoding\n", opt);
exit(EXIT_FAILURE);
} }
exit(EXIT_FAILURE);
} }
static void check_encoder_option(int decode_only, const char *opt) static void check_encoder_option(int decode_only, const char *opt)
...@@ -97,8 +97,8 @@ static void check_encoder_option(int decode_only, const char *opt) ...@@ -97,8 +97,8 @@ static void check_encoder_option(int decode_only, const char *opt)
if (decode_only) if (decode_only)
{ {
fprintf(stderr, "option %s is only for encoding\n", opt); fprintf(stderr, "option %s is only for encoding\n", opt);
exit(EXIT_FAILURE);
} }
exit(EXIT_FAILURE);
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])
......
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