From f5c4d38c78347b09478e21a661befff4b2d44643 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 14 Jul 2015 18:16:26 +0200 Subject: qsvdec: properly handle asynchronous decoding Wait for async_depth frames before syncing. --- libavcodec/qsvdec.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/qsvdec.h') 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 +#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; -- cgit v1.2.3