diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-11 05:22:43 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-20 00:00:45 +0200 |
commit | bc4f362c9281c6d3355133acdadc13a0993248e1 (patch) | |
tree | ee110fed652d19cab865e3376c84ae1ed631e462 /libavcodec/frame_thread_encoder.c | |
parent | ce051ceefc7040fe0af311e4ee5d702d4b402dbf (diff) | |
download | ffmpeg-bc4f362c9281c6d3355133acdadc13a0993248e1.tar.gz |
lavc/frame_thread_encoder: use av_fifo_alloc_array
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavcodec/frame_thread_encoder.c')
-rw-r--r-- | libavcodec/frame_thread_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c index 9ab7c3475e..9e176985ee 100644 --- a/libavcodec/frame_thread_encoder.c +++ b/libavcodec/frame_thread_encoder.c @@ -168,7 +168,7 @@ int ff_frame_thread_encoder_init(AVCodecContext *avctx, AVDictionary *options){ c->parent_avctx = avctx; - c->task_fifo = av_fifo_alloc(sizeof(Task) * BUFFER_SIZE); + c->task_fifo = av_fifo_alloc_array(BUFFER_SIZE, sizeof(Task)); if(!c->task_fifo) goto fail; |