[vlc-commits] ci_filters: handle BGRA

Thomas Guillem git at videolan.org
Tue Sep 26 18:57:26 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep 26 18:36:33 2017 +0200| [b43742bd5804bbfae04620b2840e571454a2351f] | committer: Thomas Guillem

ci_filters: handle BGRA

No need to convert BGRA to NV12 since this color is handled natively.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b43742bd5804bbfae04620b2840e571454a2351f
---

 modules/video_filter/ci_filters.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_filter/ci_filters.m b/modules/video_filter/ci_filters.m
index 58a2ddb1b3..bf78edeae2 100644
--- a/modules/video_filter/ci_filters.m
+++ b/modules/video_filter/ci_filters.m
@@ -546,7 +546,8 @@ Open(vlc_object_t *obj, char const *psz_filter)
         if (!ctx)
             goto error;
 
-        if (filter->fmt_in.video.i_chroma != VLC_CODEC_CVPX_NV12)
+        if (filter->fmt_in.video.i_chroma != VLC_CODEC_CVPX_NV12
+         && filter->fmt_in.video.i_chroma != VLC_CODEC_CVPX_BGRA)
         {
             ctx->color_space =
                 CGColorSpaceCreateWithName(kCGColorSpaceITUR_709);



More information about the vlc-commits mailing list