[FFmpeg-devel] [PATCH 05/10] lavc/frame_thread_encoder: use av_fifo_alloc_array
Lukasz Marek
lukasz.m.luki2 at gmail.com
Sun May 11 05:42:01 CEST 2014
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
---
libavcodec/frame_thread_encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c
index 9ab7c34..9e17698 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;
--
1.9.1
More information about the ffmpeg-devel
mailing list