summaryrefslogtreecommitdiff
path: root/libavcodec/amfenc.h
diff options
context:
space:
mode:
authorAlexander Kravchenko <akravchenko188@gmail.com>2018-04-09 19:48:33 +0300
committerMark Thompson <sw@jkqxz.net>2018-04-10 23:59:21 +0100
commit05f1a3face140373ae658ab1abd6bacc841a770d (patch)
treef54179c39902299499de5f79c990816679bcbab9 /libavcodec/amfenc.h
parent4c0798578cab410b4ad9c27bc47b5e09c9a66aba (diff)
downloadffmpeg-05f1a3face140373ae658ab1abd6bacc841a770d.tar.gz
lavc/amfenc: Retain a reference to D3D frames used as input during the encoding process
Fixes ticket #6990. Tested-by: James Almer <jamrial@gmail.com> Reviewed-by: Mark Thompson <sw@jkqxz.net>
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 84f0aad2fa..b1361842bd 100644
--- a/libavcodec/amfenc.h
+++ b/libavcodec/amfenc.h
@@ -62,6 +62,9 @@ typedef struct AmfContext {
AVBufferRef *hw_device_ctx; ///< pointer to HW accelerator (decoder)
AVBufferRef *hw_frames_ctx; ///< pointer to HW accelerator (frame allocator)
+ int hwsurfaces_in_queue;
+ int hwsurfaces_in_queue_max;
+
// helpers to handle async calls
int delayed_drain;
AMFSurface *delayed_surface;