[FFmpeg-cvslog] avdevice/jack_audio: use av_malloc_array()
Michael Niedermayer
git at videolan.org
Wed Apr 23 21:56:05 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 23 21:13:31 2014 +0200| [0bfb1e9238d8a0e7f0ad843e8b3b5b85de02c812] | committer: Michael Niedermayer
avdevice/jack_audio: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0bfb1e9238d8a0e7f0ad843e8b3b5b85de02c812
---
libavdevice/jack_audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c
index 67f7ac7..db1c474 100644
--- a/libavdevice/jack_audio.c
+++ b/libavdevice/jack_audio.c
@@ -163,7 +163,7 @@ static int start_jack(AVFormatContext *context)
sem_init(&self->packet_count, 0, 0);
self->sample_rate = jack_get_sample_rate(self->client);
- self->ports = av_malloc(self->nports * sizeof(*self->ports));
+ self->ports = av_malloc_array(self->nports, sizeof(*self->ports));
self->buffer_size = jack_get_buffer_size(self->client);
/* Register JACK ports */
More information about the ffmpeg-cvslog
mailing list