summaryrefslogtreecommitdiff
path: root/libavcodec/qsvdec.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 09:47:45 +0200
commitf5c4d38c78347b09478e21a661befff4b2d44643 (patch)
treea7744aeda4fde5ee1c408fb02fe2ba50f7cb6aca /libavcodec/qsvdec.h
parent6b15874fc2c3f565732201f7907ae1112727d6ae (diff)
qsvdec: properly handle asynchronous decoding
Wait for async_depth frames before syncing.
Diffstat (limited to 'libavcodec/qsvdec.h')
-rw-r--r--libavcodec/qsvdec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/qsvdec.h b/libavcodec/qsvdec.h
index 486a7e3c54..01f7690137 100644
--- a/libavcodec/qsvdec.h
+++ b/libavcodec/qsvdec.h
@@ -28,6 +28,7 @@
#include <mfx/mfxvideo.h>
+#include "libavutil/fifo.h"
#include "libavutil/frame.h"
#include "libavutil/pixfmt.h"
@@ -47,6 +48,8 @@ typedef struct QSVContext {
*/
QSVFrame *work_frames;
+ AVFifoBuffer *async_fifo;
+
// options set by the caller
int async_depth;
int iopattern;