summaryrefslogtreecommitdiff
path: root/libavcodec/videotoolbox.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-09-15 15:53:12 +0200
committerAnton Khirnov <anton@khirnov.net>2022-09-19 15:18:20 +0200
commit8576c3c5d82188c1313f20666b8760fe4a29444c (patch)
tree5fd034343afd67917d8981b5e90e06ac8cdccff3 /libavcodec/videotoolbox.h
parentd7f4ad88a0df3c1339e142957bf2c40cd056b8ce (diff)
lavc/videotoolbox: deprecate write-only output_callback
This field has never been used for anything, so stop setting it and deprecate it.
Diffstat (limited to 'libavcodec/videotoolbox.h')
-rw-r--r--libavcodec/videotoolbox.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/videotoolbox.h b/libavcodec/videotoolbox.h
index af2db0d580..fd8a5b7982 100644
--- a/libavcodec/videotoolbox.h
+++ b/libavcodec/videotoolbox.h
@@ -37,6 +37,8 @@
#include "libavcodec/avcodec.h"
+#include "libavutil/attributes.h"
+
/**
* This struct holds all the information that needs to be passed
* between the caller and libavcodec for initializing Videotoolbox decoding.
@@ -50,11 +52,14 @@ typedef struct AVVideotoolboxContext {
*/
VTDecompressionSessionRef session;
+#if FF_API_VT_OUTPUT_CALLBACK
/**
* The output callback that must be passed to the session.
* Set by av_videottoolbox_default_init()
*/
+ attribute_deprecated
VTDecompressionOutputCallback output_callback;
+#endif
/**
* CVPixelBuffer Format Type that Videotoolbox will use for decoded frames.