aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/jack_audio.c
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki2@gmail.com>2014-05-11 05:13:31 +0200
committerLukasz Marek <lukasz.m.luki2@gmail.com>2014-05-20 00:00:44 +0200
commit51bad41a13c702fc474ad76e53c3d43fa302fe83 (patch)
tree30f9ec7874b659c5a1bd742e9069b69bdbbd66b9 /libavdevice/jack_audio.c
parent7336e39f3cd2833786b0ebcca5604e13d2f86500 (diff)
downloadffmpeg-51bad41a13c702fc474ad76e53c3d43fa302fe83.tar.gz
lavd/jack_audio: use av_fifo_alloc_array
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavdevice/jack_audio.c')
-rw-r--r--libavdevice/jack_audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c
index 759ef9bcdf..70aa6ffcc1 100644
--- a/libavdevice/jack_audio.c
+++ b/libavdevice/jack_audio.c
@@ -194,9 +194,9 @@ static int start_jack(AVFormatContext *context)
}
/* 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 */
- 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))) {
jack_client_close(self->client);
return test;