diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-25 18:32:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-26 00:41:09 +0200 |
commit | e96109f93ce90908d5be44b31c152e3be36f184c (patch) | |
tree | c952a7e1e6d8027d5b554da664d7428619cdd4a0 /ffplay.c | |
parent | db85d11d9d880c932b13d37b5f1ca2bc9e3a253b (diff) | |
download | ffmpeg-e96109f93ce90908d5be44b31c152e3be36f184c.tar.gz |
ffplay: use av_malloc_array()
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |