minor syntax
This commit is contained in:
parent
cad97be8de
commit
680e3aaef5
@ -597,9 +597,12 @@ FLAC__bool FLAC__stream_encoder_set_do_escape_coding(FLAC__StreamEncoder *encode
|
||||
FLAC__ASSERT(0 != encoder);
|
||||
if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED)
|
||||
return false;
|
||||
/*@@@ deprecated:
|
||||
#if 0
|
||||
/*@@@ deprecated: */
|
||||
encoder->protected_->do_escape_coding = value;
|
||||
*/
|
||||
#else
|
||||
(void)value;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -635,9 +638,12 @@ FLAC__bool FLAC__stream_encoder_set_rice_parameter_search_dist(FLAC__StreamEncod
|
||||
FLAC__ASSERT(0 != encoder);
|
||||
if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED)
|
||||
return false;
|
||||
/*@@@ deprecated:
|
||||
#if 0
|
||||
/*@@@ deprecated: */
|
||||
encoder->protected_->rice_parameter_search_dist = value;
|
||||
*/
|
||||
#else
|
||||
(void)value;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ static void free_metadata_blocks_()
|
||||
static FLAC__StreamEncoderWriteStatus encoder_write_callback_(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data)
|
||||
{
|
||||
(void)encoder, (void)buffer, (void)bytes, (void)samples, (void)current_frame, (void)client_data;
|
||||
return FLAC__STREAM_ENCODER_WRITE_OK;
|
||||
return FLAC__STREAM_ENCODER_WRITE_STATUS_OK;
|
||||
}
|
||||
|
||||
static void encoder_metadata_callback_(const FLAC__StreamEncoder *encoder, const FLAC__StreamMetadata *metadata, void *client_data)
|
||||
|
@ -46,9 +46,9 @@ static FLAC__StreamEncoderWriteStatus encoder_write_callback_(const FLAC__Stream
|
||||
(void)encoder, (void)samples, (void)current_frame;
|
||||
|
||||
if(fwrite(buffer, 1, bytes, ecd->file) != bytes)
|
||||
return FLAC__STREAM_ENCODER_WRITE_FATAL_ERROR;
|
||||
return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
|
||||
else
|
||||
return FLAC__STREAM_ENCODER_WRITE_OK;
|
||||
return FLAC__STREAM_ENCODER_WRITE_STATUS_OK;
|
||||
}
|
||||
|
||||
static void encoder_metadata_callback_(const FLAC__StreamEncoder *encoder, const FLAC__StreamMetadata *metadata, void *client_data)
|
||||
|
Loading…
Reference in New Issue
Block a user