mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avdevice/jack_audio: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
56efd98a65
commit
0bfb1e9238
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user