mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-14 02:53:37 +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->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)
|
if(!c->task_fifo)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user