aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/amfenc.h
diff options
context:
space:
mode:
authorOvchinnikovDmitrii <ovchinnikov.dmitrii@gmail.com>2020-10-15 03:16:21 +0300
committerMark Thompson <sw@jkqxz.net>2020-11-08 19:05:17 +0000
commit2fb764e1f3932ddb5a2a071d238a4db83e6d5a1b (patch)
treee7cc6dceddb5e0a2bcd6da53f5c2d253ddde3d8e /libavcodec/amfenc.h
parentcd322794eecf1dd7d975ce3dcf1c18bbd8b91ad1 (diff)
downloadffmpeg-2fb764e1f3932ddb5a2a071d238a4db83e6d5a1b.tar.gz
lavc/amfenc: Add hardware config metadata
Without this metadata section the ffmpeg utility thinks that the AMF encoder does not support input from D3D11 and DXVA2 hardware surfaces, causing hardware pipelines to fail. Fixes #8953.
Diffstat (limited to 'libavcodec/amfenc.h')
-rw-r--r--libavcodec/amfenc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/amfenc.h b/libavcodec/amfenc.h
index 80658c6b2a..358b2ef778 100644
--- a/libavcodec/amfenc.h
+++ b/libavcodec/amfenc.h
@@ -27,6 +27,7 @@
#include "libavutil/fifo.h"
#include "avcodec.h"
+#include "hwconfig.h"
/**
@@ -117,6 +118,8 @@ typedef struct AmfContext {
int tier;
} AmfContext;
+extern const AVCodecHWConfigInternal *const ff_amfenc_hw_configs[];
+
/**
* Common encoder initization function
*/