mirror of https://git.ffmpeg.org/ffmpeg.git
ffplay: use av_malloc_array()
Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
db85d11d9d
commit
e96109f93c
2
ffplay.c
2
ffplay.c
|
@ -991,7 +991,7 @@ static void video_audio_display(VideoState *s)
|
|||
av_free(s->rdft_data);
|
||||
s->rdft = av_rdft_init(rdft_bits, DFT_R2C);
|
||||
s->rdft_bits = rdft_bits;
|
||||
s->rdft_data = av_malloc(4 * nb_freq * sizeof(*s->rdft_data));
|
||||
s->rdft_data = av_malloc_array(nb_freq, 4 *sizeof(*s->rdft_data));
|
||||
}
|
||||
{
|
||||
FFTSample *data[2];
|
||||
|
|
Loading…
Reference in New Issue