Revision 6e075dca libavcodec/ac3dec.h

View differences:

libavcodec/ac3dec.h
67 67

  
68 68
#define SPX_MAX_BANDS    17
69 69

  
70
/** Large enough for maximum possible frame size when the specification limit is ignored */
71
#define AC3_FRAME_BUFFER_SIZE 32768
72

  
70 73
typedef struct {
71 74
    AVCodecContext *avctx;                  ///< parent context
72 75
    GetBitContext gbc;                      ///< bitstream reader
73
    uint8_t *input_buffer;                  ///< temp buffer to prevent overread
74 76

  
75 77
///@defgroup bsi bit stream information
76 78
///@{
......
205 207
    DECLARE_ALIGNED(16, float, window)[AC3_BLOCK_SIZE];                              ///< window coefficients
206 208
    DECLARE_ALIGNED(16, float, tmp_output)[AC3_BLOCK_SIZE];                          ///< temporary storage for output before windowing
207 209
    DECLARE_ALIGNED(16, float, output)[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE];            ///< output after imdct transform and windowing
210
    DECLARE_ALIGNED(16, uint8_t, input_buffer)[AC3_FRAME_BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE]; ///< temp buffer to prevent overread
208 211
///@}
209 212
} AC3DecodeContext;
210 213

  

Also available in: Unified diff