diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-23 21:13:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-23 21:13:31 +0200 |
commit | 0bfb1e9238d8a0e7f0ad843e8b3b5b85de02c812 (patch) | |
tree | 19475e2e76b54504c8c6f5b37a0006243fdbf633 /libavdevice/jack_audio.c | |
parent | 56efd98a6574641a32f08cd5123725cef28a309b (diff) | |
download | ffmpeg-streaming-0bfb1e9238d8a0e7f0ad843e8b3b5b85de02c812.zip ffmpeg-streaming-0bfb1e9238d8a0e7f0ad843e8b3b5b85de02c812.tar.gz |
avdevice/jack_audio: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/jack_audio.c')
-rw-r--r-- | libavdevice/jack_audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |