Commit 77510a96 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'bc1eace1'

* commit 'bc1eace1':
  jack: Check memory allocation

Conflicts:
	libavdevice/jack.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d1f7b313 bc1eace1
......@@ -200,6 +200,10 @@ static int start_jack(AVFormatContext *context)
self->filled_pkts = av_fifo_alloc_array(FIFO_PACKETS_NUM, sizeof(AVPacket));
/* New packets FIFO with one extra packet for safety against underruns */
self->new_pkts = av_fifo_alloc_array((FIFO_PACKETS_NUM + 1), sizeof(AVPacket));
if (!self->new_pkts) {
jack_client_close(self->client);
return AVERROR(ENOMEM);
}
if ((test = supply_new_packets(self, context))) {
jack_client_close(self->client);
return test;
......
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