Mercurial > libavcodec.hg
comparison dca.c @ 7670:dabe2516abe2 libavcodec
Increase buffer size to 16384 patch by Alexander E. Patrakov" patrakov gmail
This fixes a (probably not exploitable) buffer overflow (apparently unknown to its author).
author | michael |
---|---|
date | Sat, 23 Aug 2008 13:29:13 +0000 |
parents | 85ab7655ad4d |
children | 1bdb37f93bd2 |
comparison
equal
deleted
inserted
replaced
7669:700d8267095a | 7670:dabe2516abe2 |
---|---|
67 #define DCA_LFE 0x80 | 67 #define DCA_LFE 0x80 |
68 | 68 |
69 #define HEADER_SIZE 14 | 69 #define HEADER_SIZE 14 |
70 #define CONVERT_BIAS 384 | 70 #define CONVERT_BIAS 384 |
71 | 71 |
72 #define DCA_MAX_FRAME_SIZE 16383 | 72 #define DCA_MAX_FRAME_SIZE 16384 |
73 | 73 |
74 /** Bit allocation */ | 74 /** Bit allocation */ |
75 typedef struct { | 75 typedef struct { |
76 int offset; ///< code values offset | 76 int offset; ///< code values offset |
77 int maxbits[8]; ///< max bits in VLC | 77 int maxbits[8]; ///< max bits in VLC |