Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-25 20:32:53 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-08-26 02:41:09 +0400
commite96109f93ce90908d5be44b31c152e3be36f184c (patch)
treec952a7e1e6d8027d5b554da664d7428619cdd4a0 /ffplay.c
parentdb85d11d9d880c932b13d37b5f1ca2bc9e3a253b (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index e66dea1fcd..833b5b12cf 100644
--- a/ffplay.c
+++ b/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];