mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavc/frame_thread_encoder: use av_fifo_alloc_array
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
parent
ce051ceefc
commit
bc4f362c92
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user