---
libavcodec/qsv.h | 1 +
libavcodec/qsv_h264.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/libavcodec/qsv.h b/libavcodec/qsv.h
index 992b0b3..4fde7b7 100644
--- a/libavcodec/qsv.h
+++ b/libavcodec/qsv.h
@@ -60,6 +60,7 @@ typedef struct QSVContext {
mfxBitstream bs;
int last_ret;
int need_reinit;
+ int async_depth;
int timeout;
AVPacketList *pending, *pending_end;
} QSVContext;
diff --git a/libavcodec/qsv_h264.c b/libavcodec/qsv_h264.c
index 1b43e6c..738be79 100644
--- a/libavcodec/qsv_h264.c
+++ b/libavcodec/qsv_h264.c
@@ -129,6 +129,7 @@ static void qsv_dec_flush(AVCodecContext *avctx)
#define OFFSET(x) offsetof(QSVH264Context, x)
#define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM
static const AVOption options[] = {
+ { "async_depth", "Depth of asynchronous", OFFSET(qsv.async_depth),
AV_OPT_TYPE_INT, { .i64 = ASYNC_DEPTH_DEFAULT }, 0, INT_MAX, VD },
{ "timeout", "Maximum timeout in milliseconds when the device has been
busy", OFFSET(qsv.timeout), AV_OPT_TYPE_INT, { .i64 = TIMEOUT_DEFAULT }, 0,
INT_MAX, VD },
{ NULL },
};
--
1.8.3.msysgit.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel