[vlc-commits] flac: fix encoder enum type
Rémi Duraffort
git at videolan.org
Thu Jan 23 19:13:03 CET 2014
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jan 23 18:21:07 2014 +0100| [5ca6d6ef6f39e0d8098d51b6cee443e7b557a725] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ca6d6ef6f39e0d8098d51b6cee443e7b557a725
---
modules/codec/flac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/flac.c b/modules/codec/flac.c
index dcfbc3a..611c3db 100644
--- a/modules/codec/flac.c
+++ b/modules/codec/flac.c
@@ -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
More information about the vlc-commits
mailing list