Increase buffer size to 16384 patch by Alexander E. Patrakov" patrakov gmail
authorAlexander E. Patrakov <patrakov@gmail.com>
Sat, 23 Aug 2008 13:29:13 +0000 (13:29 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 23 Aug 2008 13:29:13 +0000 (13:29 +0000)
This fixes a (probably not exploitable) buffer overflow (apparently unknown to its author).

Originally committed as revision 14917 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dca.c

index 8cca01a..83b4488 100644 (file)
@@ -69,7 +69,7 @@ enum DCAMode {
 #define HEADER_SIZE 14
 #define CONVERT_BIAS 384
 
-#define DCA_MAX_FRAME_SIZE 16383
+#define DCA_MAX_FRAME_SIZE 16384
 
 /** Bit allocation */
 typedef struct {