Commit f80652a8 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo

stream_decoder.c: Comments

Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent 5ae578ff
...@@ -647,10 +647,10 @@ FLAC_API FLAC__bool FLAC__stream_decoder_finish(FLAC__StreamDecoder *decoder) ...@@ -647,10 +647,10 @@ FLAC_API FLAC__bool FLAC__stream_decoder_finish(FLAC__StreamDecoder *decoder)
FLAC__bitreader_free(decoder->private_->input); FLAC__bitreader_free(decoder->private_->input);
for(i = 0; i < FLAC__MAX_CHANNELS; i++) { for(i = 0; i < FLAC__MAX_CHANNELS; i++) {
/* WATCHOUT: /* WATCHOUT:
* FLAC__lpc_restore_signal_asm_ia32_mmx() requires that the * FLAC__lpc_restore_signal_asm_ia32_mmx() and ..._intrin_sseN()
* output arrays have a buffer of up to 3 zeroes in front * require that the output arrays have a buffer of up to 3 zeroes
* (at negative indices) for alignment purposes; we use 4 * in front (at negative indices) for alignment purposes;
* to keep the data well-aligned. * we use 4 to keep the data well-aligned.
*/ */
if(0 != decoder->private_->output[i]) { if(0 != decoder->private_->output[i]) {
free(decoder->private_->output[i]-4); free(decoder->private_->output[i]-4);
...@@ -1280,10 +1280,10 @@ FLAC__bool allocate_output_(FLAC__StreamDecoder *decoder, uint32_t size, uint32_ ...@@ -1280,10 +1280,10 @@ FLAC__bool allocate_output_(FLAC__StreamDecoder *decoder, uint32_t size, uint32_
for(i = 0; i < channels; i++) { for(i = 0; i < channels; i++) {
/* WATCHOUT: /* WATCHOUT:
* FLAC__lpc_restore_signal_asm_ia32_mmx() requires that the * FLAC__lpc_restore_signal_asm_ia32_mmx() and ..._intrin_sseN()
* output arrays have a buffer of up to 3 zeroes in front * require that the output arrays have a buffer of up to 3 zeroes
* (at negative indices) for alignment purposes; we use 4 * in front (at negative indices) for alignment purposes;
* to keep the data well-aligned. * we use 4 to keep the data well-aligned.
*/ */
tmp = safe_malloc_muladd2_(sizeof(FLAC__int32), /*times (*/size, /*+*/4/*)*/); tmp = safe_malloc_muladd2_(sizeof(FLAC__int32), /*times (*/size, /*+*/4/*)*/);
if(tmp == 0) { if(tmp == 0) {
......
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