diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-03-31 11:13:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-03-31 11:13:14 +0000 |
commit | 309522372c481dea3d9f6f33eacc6d200cce10cb (patch) | |
tree | 0802521e9d59572ba31004e4e9e5bd9d09d2da40 /libavcodec/h263.c | |
parent | 8437bd7bc8d3fa502e1f9bf112bebcce2522d82c (diff) | |
download | ffmpeg-309522372c481dea3d9f6f33eacc6d200cce10cb.tar.gz |
some static -> dynamic alloc & 16->8 bit
Originally committed as revision 1722 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index a054ebfb02..2e7e19e2a9 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -87,7 +87,7 @@ static uint8_t uni_DCtab_chrom_len[512]; static uint16_t uni_DCtab_lum_bits[512]; static uint16_t uni_DCtab_chrom_bits[512]; -static uint16_t (*mv_penalty)[MAX_MV*2+1]= NULL; +static uint8_t (*mv_penalty)[MAX_MV*2+1]= NULL; static uint8_t fcode_tab[MAX_MV*2+1]; static uint8_t umv_fcode_tab[MAX_MV*2+1]; @@ -1255,7 +1255,7 @@ static void init_mv_penalty_and_fcode(MpegEncContext *s) int mv; if(mv_penalty==NULL) - mv_penalty= av_mallocz( sizeof(uint16_t)*(MAX_FCODE+1)*(2*MAX_MV+1) ); + mv_penalty= av_mallocz( sizeof(uint8_t)*(MAX_FCODE+1)*(2*MAX_MV+1) ); for(f_code=1; f_code<=MAX_FCODE; f_code++){ for(mv=-MAX_MV; mv<=MAX_MV; mv++){ |