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>
This commit is contained in:
Rick Kern 2023-05-19 09:48:26 -04:00
parent 5cd304298e
commit c789a2324a
1 changed files with 5 additions and 1 deletions

View File

@ -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;