]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/frame_thread_encoder.c
Merge commit 'd5a55981986ac5d1a31aef3a8d16eaff8534a412'
[ffmpeg] / libavcodec / frame_thread_encoder.c
index 9ab7c3475e9f494d07b51d881e6cc63ee2860d7b..9e176985ee675028654e2bedd5fb7a1498dbde25 100644 (file)
@@ -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;