Commit 0bfb1e92 authored by Michael Niedermayer's avatar Michael Niedermayer

avdevice/jack_audio: use av_malloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 56efd98a
...@@ -163,7 +163,7 @@ static int start_jack(AVFormatContext *context) ...@@ -163,7 +163,7 @@ static int start_jack(AVFormatContext *context)
sem_init(&self->packet_count, 0, 0); sem_init(&self->packet_count, 0, 0);
self->sample_rate = jack_get_sample_rate(self->client); 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); self->buffer_size = jack_get_buffer_size(self->client);
/* Register JACK ports */ /* Register JACK ports */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment