Open
Description
I also had same error while building.
That's why I mentioned submitting PR with fix toFFmpeg
You can resolve the issue yourself by changing following lines inlibavcodec/videotoolbox.c
#if TARGET_OS_IPHONE CFDictionarySetValue(buffer_attributes, kCVPixelBufferOpenGLESCompatibilityKey, kCFBooleanTrue); #else CFDictionarySetValue(buffer_attributes, kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey, kCFBooleanTrue); #endif
to following code:
#if TARGET_ABI_USES_IOS_VALUES CFDictionarySetValue(buffer_attributes, kCVPixelBufferOpenGLESCompatibilityKey, kCFBooleanTrue); #elif TARGET_OS_OSX CFDictionarySetValue(buffer_attributes, kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey, kCFBooleanTrue); #endif
Everything worked well when I modify the libavcodec/videotoolbox.c, Thank you very much @666tos Your magic script really helped me .
Originally posted by @simayang01 in kewlbear/FFmpeg-iOS-build-script#147 (comment)
Metadata
Metadata
Assignees
Labels
No labels