Commit 9c072fa4 authored by Josh Coalson's avatar Josh Coalson
Browse files

fix bug with asserts

parent a18b2ee5
......@@ -73,7 +73,7 @@ int decode_wav(const char *infile, const char *outfile, bool analysis_mode, bool
stream_info.samples_processed = 0;
stream_info.frame_counter = 0;
assert(!(test_only && analysis_mode));
assert(!(stream_info.test_only && stream_info.analysis_mode));
if(!stream_info.test_only) {
if(0 == strcmp(outfile, "-")) {
......@@ -173,7 +173,7 @@ int decode_raw(const char *infile, const char *outfile, bool analysis_mode, bool
stream_info.samples_processed = 0;
stream_info.frame_counter = 0;
assert(!(test_only && analysis_mode));
assert(!(stream_info.test_only && stream_info.analysis_mode));
if(!stream_info.test_only) {
if(0 == strcmp(outfile, "-")) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment