[vlc-commits] direct3d11: make sure ppColorspace is always set a value

Steve Lhomme git at videolan.org
Fri Jan 20 14:31:46 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Jan 19 11:10:38 2017 +0100| [ed44c2eaed21c6606d050e453ae965d0e8f4f02b] | committer: Jean-Baptiste Kempf

direct3d11: make sure ppColorspace is always set a value

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_output/win32/direct3d11.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index d5b926b..82cff6e 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1937,6 +1937,7 @@ static int AllocQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
         case COLOR_SPACE_BT601:
             ppColorspace = COLORSPACE_BT601_TO_FULL;
             break;
+        default:
         case COLOR_SPACE_UNDEF:
             if( fmt->i_height > 576 )
                 ppColorspace = COLORSPACE_BT709_TO_FULL;



More information about the vlc-commits mailing list