Skip to content

Commit

Permalink
flac: fix encoder enum type
Browse files Browse the repository at this point in the history
In fact both enums will have identical value (0 as first enum in the list). But
this can break if the header change.
  • Loading branch information
ivoire committed Jan 23, 2014
1 parent df5b4a9 commit 5ca6d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/codec/flac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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
Expand Down

0 comments on commit 5ca6d6e

Please sign in to comment.