Commit bc4f362c authored by Lukasz Marek's avatar Lukasz Marek

lavc/frame_thread_encoder: use av_fifo_alloc_array

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
parent ce051cee
......@@ -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;
......
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