Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2014/04/24 04:13:31... | ... |
@@ -163,7 +163,7 @@ static int start_jack(AVFormatContext *context) |
163 | 163 |
sem_init(&self->packet_count, 0, 0); |
164 | 164 |
|
165 | 165 |
self->sample_rate = jack_get_sample_rate(self->client); |
166 |
- self->ports = av_malloc(self->nports * sizeof(*self->ports)); |
|
166 |
+ self->ports = av_malloc_array(self->nports, sizeof(*self->ports)); |
|
167 | 167 |
self->buffer_size = jack_get_buffer_size(self->client); |
168 | 168 |
|
169 | 169 |
/* Register JACK ports */ |