History

lavc/videotoolboxenc: better compat_keys documentation

Added documentation that describes when compat_keys should be used, and why it exists.

Rick Kern committed 3 years ago

Commit c789a231 parent 5cd30421 file · +5 −1Browse files

Unified · Split

libavcodec/videotoolboxenc.c+5−1
@@ -63,7 +63,11 @@ typedef OSStatus (*getParameterSetAtIndex)(CMFormatDescriptionRef videoDesc, · 62 unmodified lines
6363 size_t *parameterSetCountOut,
6464 int *NALUnitHeaderLengthOut);
6565
66−//These symbols may not be present
66+/*
67+ * Keys that are not present in all versions of VideoToolbox need to be
68+ * accessed from compat_keys, or it will cause compiler errors when compiling
69+ * for older OS versions.
70+ */
6771 static struct{
6872 CFStringRef kCVImageBufferColorPrimaries_ITU_R_2020;
6973 CFStringRef kCVImageBufferTransferFunction_ITU_R_2020;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t