|
|
@@ -67,10 +67,12 @@ |
|
|
|
|
|
|
|
#define SPX_MAX_BANDS 17 |
|
|
|
|
|
|
|
/** Large enough for maximum possible frame size when the specification limit is ignored */ |
|
|
|
#define AC3_FRAME_BUFFER_SIZE 32768 |
|
|
|
|
|
|
|
typedef struct { |
|
|
|
AVCodecContext *avctx; ///< parent context |
|
|
|
GetBitContext gbc; ///< bitstream reader |
|
|
|
uint8_t *input_buffer; ///< temp buffer to prevent overread |
|
|
|
|
|
|
|
///@defgroup bsi bit stream information |
|
|
|
///@{ |
|
|
@@ -205,6 +207,7 @@ typedef struct { |
|
|
|
DECLARE_ALIGNED(16, float, window)[AC3_BLOCK_SIZE]; ///< window coefficients |
|
|
|
DECLARE_ALIGNED(16, float, tmp_output)[AC3_BLOCK_SIZE]; ///< temporary storage for output before windowing |
|
|
|
DECLARE_ALIGNED(16, float, output)[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE]; ///< output after imdct transform and windowing |
|
|
|
DECLARE_ALIGNED(16, uint8_t, input_buffer)[AC3_FRAME_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE]; ///< temp buffer to prevent overread |
|
|
|
///@} |
|
|
|
} AC3DecodeContext; |
|
|
|
|
|
|
|