Commit 1c667626 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '386e2755'

* commit '386e2755':
  jack: Check memory allocation

Conflicts:
	libavdevice/jack.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a6df9ce6 386e2755
......@@ -165,6 +165,8 @@ static int start_jack(AVFormatContext *context)
self->sample_rate = jack_get_sample_rate(self->client);
self->ports = av_malloc_array(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