Commit 51bad41a authored by Lukasz Marek's avatar Lukasz Marek

lavd/jack_audio: use av_fifo_alloc_array

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
parent 7336e39f
...@@ -194,9 +194,9 @@ static int start_jack(AVFormatContext *context) ...@@ -194,9 +194,9 @@ static int start_jack(AVFormatContext *context)
} }
/* Create FIFO buffers */ /* Create FIFO buffers */
self->filled_pkts = av_fifo_alloc(FIFO_PACKETS_NUM * sizeof(AVPacket)); self->filled_pkts = av_fifo_alloc_array(FIFO_PACKETS_NUM, sizeof(AVPacket));
/* New packets FIFO with one extra packet for safety against underruns */ /* New packets FIFO with one extra packet for safety against underruns */
self->new_pkts = av_fifo_alloc((FIFO_PACKETS_NUM + 1) * sizeof(AVPacket)); self->new_pkts = av_fifo_alloc_array((FIFO_PACKETS_NUM + 1), sizeof(AVPacket));
if ((test = supply_new_packets(self, context))) { if ((test = supply_new_packets(self, context))) {
jack_client_close(self->client); jack_client_close(self->client);
return test; 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