aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qsvenc.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-07-14 18:16:26 +0200
committerAnton Khirnov <anton@khirnov.net>2015-07-19 10:06:53 +0200
commit69b92f1b99f3f210be19ee6ec06f6c0de1733031 (patch)
tree246bb42b764a5fd7c25c9d8bb6909742dc4ad0e4 /libavcodec/qsvenc.h
parentf5c4d38c78347b09478e21a661befff4b2d44643 (diff)
downloadffmpeg-69b92f1b99f3f210be19ee6ec06f6c0de1733031.tar.gz
qsvenc: properly handle asynchronous encoding
Wait for async_depth frames before syncing.
Diffstat (limited to 'libavcodec/qsvenc.h')
-rw-r--r--libavcodec/qsvenc.h3
1 files changed, 3 insertions, 0 deletions
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 <mfx/mfxvideo.h>
#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;