diff options
author | Gregory Maxwell <greg@xiph.org> | 2011-10-29 11:45:13 +0400 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2011-10-29 11:45:13 +0400 |
commit | 72b9b34da75f4beee3b8766529408e59c92c342e (patch) | |
tree | 08c6865fd4472e6c48fe32639b388152ae1b0e85 /src/opus_demo.c | |
parent | 7664d811a8cd9ef4f9a593ce2a9bf731e87e2040 (diff) |
Newly introduced check_encoder_option failed unconditionally instead of only when you used the wrong options.
Diffstat (limited to 'src/opus_demo.c')
-rw-r--r-- | src/opus_demo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opus_demo.c b/src/opus_demo.c index 3ec4b107..23c2128f 100644 --- a/src/opus_demo.c +++ b/src/opus_demo.c @@ -88,8 +88,8 @@ static void check_decoder_option(int encode_only, const char *opt) if (encode_only) { 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) @@ -97,8 +97,8 @@ static void check_encoder_option(int decode_only, const char *opt) if (decode_only) { fprintf(stderr, "option %s is only for encoding\n", opt); + exit(EXIT_FAILURE); } - exit(EXIT_FAILURE); } int main(int argc, char *argv[]) |