From b5eb326dcb88a309f3b89dc7309f226f2488eb63 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 Feb 2017 13:59:21 +0100 Subject: videotoolbox: fix RGB format Wrong colors. This didn't matter for the OpenGL interop code, because the CV format was mapped to the correct texture format. --- video/out/opengl/hwdec_osx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/opengl/hwdec_osx.c') diff --git a/video/out/opengl/hwdec_osx.c b/video/out/opengl/hwdec_osx.c index aa350209ec..734e3a2e0e 100644 --- a/video/out/opengl/hwdec_osx.c +++ b/video/out/opengl/hwdec_osx.c @@ -79,7 +79,7 @@ static struct vt_format vt_formats[] = { }, { .cvpixfmt = kCVPixelFormatType_32BGRA, - .imgfmt = IMGFMT_RGB0, + .imgfmt = IMGFMT_BGR0, .planes = 1, .gl = { { GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, GL_RGBA } -- cgit v1.2.3