Commit d7647086 authored by mru's avatar mru

The AAC frame header uses 13 bits for the frame size, so the buffer should

have room for such a frame.  A frame that large seems unlikely in a valid
file, but leaving room for it spares us the need to check it elsewhere.
Moving the buffer to the end of the struct made debugging this easier.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5487 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 93a3d14e
......@@ -729,12 +729,12 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
/* also used for ADTS AAC */
typedef struct AC3ParseContext {
uint8_t inbuf[4096]; /* input buffer */
uint8_t *inbuf_ptr;
int frame_size;
int header_size;
int (*sync)(const uint8_t *buf, int *channels, int *sample_rate,
int *bit_rate, int *samples);
uint8_t inbuf[8192]; /* input buffer */
} AC3ParseContext;
#define AC3_HEADER_SIZE 7
......
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