From 69b92f1b99f3f210be19ee6ec06f6c0de1733031 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 14 Jul 2015 18:16:26 +0200 Subject: qsvenc: properly handle asynchronous encoding Wait for async_depth frames before syncing. --- libavcodec/qsvenc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/qsvenc.h') diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h index f3a06eb784..7bbeec33aa 100644 --- a/libavcodec/qsvenc.h +++ b/libavcodec/qsvenc.h @@ -29,6 +29,7 @@ #include #include "libavutil/avutil.h" +#include "libavutil/fifo.h" #include "avcodec.h" #include "qsv_internal.h" @@ -50,6 +51,8 @@ typedef struct QSVEncContext { mfxExtCodingOption extco; mfxExtBuffer *extparam[1]; + AVFifoBuffer *async_fifo; + // options set by the caller int async_depth; int idr_interval; -- cgit v1.2.3