Commit 5ca6d6ef authored by Rémi Duraffort's avatar Rémi Duraffort

flac: fix encoder enum type

In fact both enums will have identical value (0 as first enum in the list). But
this can break if the header change.
parent df5b4a9d
......@@ -592,7 +592,7 @@ EncoderWriteCallback( const FLAC__StreamEncoder *encoder,
((uint8_t*)p_enc->fmt_out.p_extra)[4] |= 0x80;
}
p_sys->i_headers++;
return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE;
return FLAC__STREAM_ENCODER_WRITE_STATUS_OK;
}
p_block = block_Alloc( bytes );
......@@ -610,7 +610,7 @@ EncoderWriteCallback( const FLAC__StreamEncoder *encoder,
block_ChainAppend( &p_sys->p_chain, p_block );
return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE;
return FLAC__STREAM_ENCODER_WRITE_STATUS_OK;
}
/*****************************************************************************
* EncoderMetadataCallback: called by libflac to output metadata
......
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