stream_encoder.c: Fix compiler warning

Remove incorrect assignment to `encoder->protected_->state`.
This commit is contained in:
Erik de Castro Lopo 2015-12-13 11:33:52 +11:00
parent f0ee453c23
commit 55910e61ac

View File

@ -2159,7 +2159,6 @@ FLAC_API FLAC__bool FLAC__stream_encoder_process(FLAC__StreamEncoder *encoder, c
for(channel = 0; channel < channels; channel++) {
if (buffer[channel] == NULL) {
encoder->protected_->state = FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
return false;
}
memcpy(&encoder->private_->integer_signal[channel][encoder->private_->current_sample_number], &buffer[channel][j], sizeof(buffer[channel][0]) * n);