mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
Block a user