[FFmpeg-devel] [PATCH] lavc/videotoolbox: set kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey
wm4
nfxjfg at googlemail.com
Thu Mar 2 11:34:07 EET 2017
On Fri, 24 Feb 2017 10:49:39 +0100
wm4 <nfxjfg at googlemail.com> wrote:
> Makes sure the output can be mapped as OpenGL texture.
> This is what at least video players normally want.
> ---
> libavcodec/videotoolbox.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
> index 2ebe60fb5c..824f2d8e68 100644
> --- a/libavcodec/videotoolbox.c
> +++ b/libavcodec/videotoolbox.c
> @@ -477,6 +477,7 @@ static CFDictionaryRef videotoolbox_buffer_attributes_create(int width,
> CFDictionarySetValue(buffer_attributes, kCVPixelBufferIOSurfacePropertiesKey, io_surface_properties);
> CFDictionarySetValue(buffer_attributes, kCVPixelBufferWidthKey, w);
> CFDictionarySetValue(buffer_attributes, kCVPixelBufferHeightKey, h);
> + CFDictionarySetValue(buffer_attributes, kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey, kCFBooleanTrue);
>
> CFRelease(io_surface_properties);
> CFRelease(cv_pix_fmt);
Applied.
More information about the ffmpeg-devel
mailing list