diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-07-14 18:16:26 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-07-19 09:47:45 +0200 |
commit | f5c4d38c78347b09478e21a661befff4b2d44643 (patch) | |
tree | a7744aeda4fde5ee1c408fb02fe2ba50f7cb6aca /libavcodec/qsvdec.h | |
parent | 6b15874fc2c3f565732201f7907ae1112727d6ae (diff) | |
download | ffmpeg-f5c4d38c78347b09478e21a661befff4b2d44643.tar.gz |
qsvdec: properly handle asynchronous decoding
Wait for async_depth frames before syncing.
Diffstat (limited to 'libavcodec/qsvdec.h')
-rw-r--r-- | libavcodec/qsvdec.h | 3 |
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; |