mirror of
https://github.com/librempeg/librempeg
synced 2024-11-21 16:44:05 +00:00
jack: Check memory allocation
Bug-Id: CID 1265785 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
parent
617814b4a7
commit
386e2755aa
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user