]> git.sesse.net Git - vlc/commitdiff
DShow: fix RGB24 Colouring
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Apr 2010 08:54:24 +0000 (10:54 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Apr 2010 09:02:28 +0000 (11:02 +0200)
Fix #3497
See http://msdn.microsoft.com/en-us/library/dd407253%28VS.85%29.aspx?ppud=4 for more information

modules/access/dshow/dshow.cpp

index 6736b507460723b5a775c99079b3f19dea1e4295..641db36248dbc75b8c73f098abc5e91f6e7c790e 100644 (file)
@@ -659,10 +659,12 @@ static int DemuxOpen( vlc_object_t *p_this )
             /* Setup rgb mask for RGB formats */
             if( p_stream->i_fourcc == VLC_CODEC_RGB24 )
             {
-                /* This is in BGR format */
-                fmt.video.i_bmask = 0x00ff0000;
+                /* This is in RGB format
+            http://msdn.microsoft.com/en-us/library/dd407253%28VS.85%29.aspx?ppud=4
+                 */
+                fmt.video.i_rmask = 0x00ff0000;
                 fmt.video.i_gmask = 0x0000ff00;
-                fmt.video.i_rmask = 0x000000ff;
+                fmt.video.i_bmask = 0x000000ff;
             }
 
             if( p_stream->header.video.AvgTimePerFrame )