mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/ratecontrol: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
69bbe27b45
commit
1fd5c7f1ee
@ -952,8 +952,8 @@ static int init_pass2(MpegEncContext *s)
|
||||
return -1;
|
||||
}
|
||||
|
||||
qscale = av_malloc(sizeof(double) * rcc->num_entries);
|
||||
blurred_qscale = av_malloc(sizeof(double) * rcc->num_entries);
|
||||
qscale = av_malloc_array(rcc->num_entries, sizeof(double));
|
||||
blurred_qscale = av_malloc_array(rcc->num_entries, sizeof(double));
|
||||
toobig = 0;
|
||||
|
||||
for (step = 256 * 256; step > 0.0000001; step *= 0.5) {
|
||||
|
Loading…
Reference in New Issue
Block a user