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>
pull/389/head
Rick Kern 2 years ago
parent 5cd304298e
commit c789a2324a
  1. 6
      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;

Loading…
Cancel
Save