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