|
|
@@ -472,7 +472,8 @@ static CFDictionaryRef videotoolbox_buffer_attributes_create(int width, |
|
|
|
&kCFTypeDictionaryKeyCallBacks, |
|
|
|
&kCFTypeDictionaryValueCallBacks); |
|
|
|
|
|
|
|
CFDictionarySetValue(buffer_attributes, kCVPixelBufferPixelFormatTypeKey, cv_pix_fmt); |
|
|
|
if (pix_fmt) |
|
|
|
CFDictionarySetValue(buffer_attributes, kCVPixelBufferPixelFormatTypeKey, cv_pix_fmt); |
|
|
|
CFDictionarySetValue(buffer_attributes, kCVPixelBufferIOSurfacePropertiesKey, io_surface_properties); |
|
|
|
CFDictionarySetValue(buffer_attributes, kCVPixelBufferWidthKey, w); |
|
|
|
CFDictionarySetValue(buffer_attributes, kCVPixelBufferHeightKey, h); |
|
|
|