diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-03-24 23:45:13 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-03-24 23:45:13 +0000 |
commit | 9c15096e3f724f10e21d3dea30a8d49e04a3cf7c (patch) | |
tree | 0c978009ebb565351950ee1a72447ffc739438af /libavcodec/mpegvideo.c | |
parent | d633c2c0964b05b398e24b2447d9487316641794 (diff) | |
download | ffmpeg-9c15096e3f724f10e21d3dea30a8d49e04a3cf7c.tar.gz |
fcode_tables where too small, found by Klaas-Pieter Vlieg <vlieg@eurescom.de>
Originally committed as revision 360 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 26f1a07e9b..a4d649cfe5 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -67,7 +67,7 @@ static UINT8 h263_chroma_roundtab[16] = { 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, }; -static UINT16 default_mv_penalty[MAX_FCODE][MAX_MV*2+1]; +static UINT16 default_mv_penalty[MAX_FCODE+1][MAX_MV*2+1]; static UINT8 default_fcode_tab[MAX_MV*2+1]; /* default motion estimation */ @@ -366,7 +366,7 @@ int MPV_encode_init(AVCodecContext *avctx) if(!done){ int i; done=1; - memset(default_mv_penalty, 0, sizeof(UINT16)*MAX_FCODE*(2*MAX_MV+1)); + memset(default_mv_penalty, 0, sizeof(UINT16)*(MAX_FCODE+1)*(2*MAX_MV+1)); memset(default_fcode_tab , 0, sizeof(UINT8)*(2*MAX_MV+1)); for(i=-16; i<16; i++){ |