diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-03-05 03:00:25 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-03-05 03:00:25 +0000 |
commit | 8b2fce0d3f5a56c40c28899c9237210ca8f9cf75 (patch) | |
tree | 3ca9e006bd0671d7c2a43c043288c2fee95c5191 /libswscale/swscale_internal.h | |
parent | fbd4293df9b0c9a1076da74b8e7a86cae6efdfe1 (diff) | |
download | ffmpeg-8b2fce0d3f5a56c40c28899c9237210ca8f9cf75.tar.gz |
Turn ancient V offset numerical constants into named ones.
Add a check that checks that the width is within the choosen constant.
This might have been exploitable.
Originally committed as revision 26165 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index aa583a6b1b..81b2f1afb9 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -31,6 +31,9 @@ #define MAX_FILTER_SIZE 256 +#define VOF 4096 +#define VOFW 2048 + typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]); @@ -70,7 +73,7 @@ typedef struct SwsContext{ int16_t *vChrFilter; int16_t *vChrFilterPos; - uint8_t formatConvBuffer[4000]; //FIXME dynamic alloc, but we have to change a lot of code for this to be useful + uint8_t formatConvBuffer[VOF]; //FIXME dynamic alloc, but we have to change a lot of code for this to be useful int hLumFilterSize; int hChrFilterSize; |