From 9c072fa4ba117bc0419bb2ffff8e66bb65af4fc8 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Wed, 24 Jan 2001 23:35:48 +0000 Subject: [PATCH] fix bug with asserts --- src/flac/decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flac/decode.c b/src/flac/decode.c index a0248a9..260889a 100644 --- a/src/flac/decode.c +++ b/src/flac/decode.c @@ -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, "-")) { -- 2.7.4