Commit 47c7b140 authored by Josh Coalson's avatar Josh Coalson
Browse files

add FLAC__MANDATORY_VERIFY_WHILE_ENCODING ifdefs which will be turned on when...

add FLAC__MANDATORY_VERIFY_WHILE_ENCODING ifdefs which will be turned on when compiling with new asm optimzations
parent cc12687a
......@@ -994,7 +994,9 @@ FLAC_API FLAC__bool FLAC__stream_encoder_set_verify(FLAC__StreamEncoder *encoder
FLAC__ASSERT(0 != encoder);
if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED)
return false;
#ifndef FLAC__MANDATORY_VERIFY_WHILE_ENCODING
encoder->protected_->verify = value;
#endif
return true;
}
......@@ -1634,7 +1636,11 @@ void set_defaults_(FLAC__StreamEncoder *encoder)
{
FLAC__ASSERT(0 != encoder);
#ifdef FLAC__MANDATORY_VERIFY_WHILE_ENCODING
encoder->protected_->verify = true;
#else
encoder->protected_->verify = false;
#endif
encoder->protected_->streamable_subset = true;
encoder->protected_->do_mid_side_stereo = false;
encoder->protected_->loose_mid_side_stereo = false;
......
Markdown is supported
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