Skip to content

Commit 5750c99

Browse files
committed
Merge pull request #592 from fran6co/vt_10.8
Mac OS X 10.8 compatibility
2 parents 680d934 + 734e641 commit 5750c99

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/vt_rgb_packet_processor.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@ class VTRgbPacketProcessorImpl: public WithPerfLogging
6969

7070
CMVideoFormatDescriptionCreate(NULL, kCMVideoCodecType_JPEG, width, height, NULL, &format);
7171

72-
const void *decoderSpecificationKeys[] = {kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder};
73-
const void *decoderSpecificationValues[] = {kCFBooleanTrue};
74-
CFDictionaryRef decoderSpecification = CFDictionaryCreate(NULL,
75-
decoderSpecificationKeys,
76-
decoderSpecificationValues,
77-
1,
78-
&kCFTypeDictionaryKeyCallBacks,
79-
&kCFTypeDictionaryValueCallBacks);
80-
8172
int32_t pixelFormat = kCVPixelFormatType_32BGRA;
8273
const void *outputKeys[] = {kCVPixelBufferPixelFormatTypeKey, kCVPixelBufferWidthKey, kCVPixelBufferHeightKey};
8374
const void *outputValues[] =
@@ -93,9 +84,8 @@ class VTRgbPacketProcessorImpl: public WithPerfLogging
9384

9485
VTDecompressionOutputCallbackRecord callback = {&VTRgbPacketProcessorImpl::decodeFrame, NULL};
9586

96-
VTDecompressionSessionCreate(NULL, format, decoderSpecification, outputConfiguration, &callback, &decoder);
87+
VTDecompressionSessionCreate(NULL, format, NULL, outputConfiguration, &callback, &decoder);
9788

98-
CFRelease(decoderSpecification);
9989
CFRelease(outputConfiguration);
10090
}
10191

0 commit comments

Comments
 (0)