summaryrefslogtreecommitdiff
path: root/libavcodec/videotoolboxenc.c
diff options
context:
space:
mode:
authorRick Kern <kernrj@gmail.com>2023-05-19 09:48:26 -0400
committerRick Kern <kernrj@gmail.com>2023-05-19 09:48:26 -0400
commitc789a2324a6578568db947b6bf10c2dfd0011bef (patch)
treeaba4c12bf359734447705f13294c8895d2792496 /libavcodec/videotoolboxenc.c
parent5cd304298eddbdc88d8c3c7d1bbf71aa251b096c (diff)
lavc/videotoolboxenc: better compat_keys documentation
Added documentation that describes when compat_keys should be used, and why it exists. Signed-off-by: Rick Kern <kernrj@gmail.com>
Diffstat (limited to 'libavcodec/videotoolboxenc.c')
-rw-r--r--libavcodec/videotoolboxenc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index e91d17c132..b0297ec448 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -63,7 +63,11 @@ typedef OSStatus (*getParameterSetAtIndex)(CMFormatDescriptionRef videoDesc,
size_t *parameterSetCountOut,
int *NALUnitHeaderLengthOut);
-//These symbols may not be present
+/*
+ * Keys that are not present in all versions of VideoToolbox need to be
+ * accessed from compat_keys, or it will cause compiler errors when compiling
+ * for older OS versions.
+ */
static struct{
CFStringRef kCVImageBufferColorPrimaries_ITU_R_2020;
CFStringRef kCVImageBufferTransferFunction_ITU_R_2020;