Commit 386e2755 authored by Federico Tomassetti's avatar Federico Tomassetti Committed by Vittorio Giovara

jack: Check memory allocation

Bug-Id: CID 1265785
Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent 617814b4
......@@ -165,6 +165,8 @@ static int start_jack(AVFormatContext *context)
self->sample_rate = jack_get_sample_rate(self->client);
self->ports = av_malloc(self->nports * sizeof(*self->ports));
if (!self->ports)
return AVERROR(ENOMEM);
self->buffer_size = jack_get_buffer_size(self->client);
/* 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