mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
dont malloc() static mv_penalty arrays
Originally committed as revision 8389 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
+1
-4
@@ -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 uint8_t (*mv_penalty)[MAX_MV*2+1]= NULL;
|
||||
static uint8_t mv_penalty[MAX_FCODE+1][MAX_MV*2+1];
|
||||
static uint8_t fcode_tab[MAX_MV*2+1];
|
||||
static uint8_t umv_fcode_tab[MAX_MV*2+1];
|
||||
|
||||
@@ -1797,9 +1797,6 @@ static void init_mv_penalty_and_fcode(MpegEncContext *s)
|
||||
int f_code;
|
||||
int mv;
|
||||
|
||||
if(mv_penalty==NULL)
|
||||
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++){
|
||||
int len;
|
||||
|
||||
Reference in New Issue
Block a user