From 4a38f75f85bc0a70468abd2c709ca1d398742e17 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Mon, 30 Jun 2014 19:55:21 +1000 Subject: [PATCH] src/flac/decode.c : Add comment about ubuf union. --- src/flac/decode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flac/decode.c b/src/flac/decode.c index 266a1606..e98c07a8 100644 --- a/src/flac/decode.c +++ b/src/flac/decode.c @@ -968,7 +968,8 @@ FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder unsigned frame_bytes = 0; static union - { FLAC__int8 s8buffer [FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int32)]; /* WATCHOUT: can be up to 2 megs */ + { /* The arrays defined within this union are all the same size. */ + FLAC__int8 s8buffer [FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int32)]; /* WATCHOUT: can be up to 2 megs */ FLAC__uint8 u8buffer [FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int32)]; FLAC__int16 s16buffer [FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int16)]; FLAC__uint16 u16buffer [FLAC__MAX_BLOCK_SIZE * FLAC__MAX_CHANNELS * sizeof(FLAC__int16)];