[vlc-commits] commit: DShow: fix RGB24 Colouring (Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Wed Apr 7 11:05:11 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr 7 10:54:24 2010 +0200| [1ed99377d07a6f48e0c01d81fd00691c92570be0] | committer: Jean-Baptiste Kempf
DShow: fix RGB24 Colouring
Fix #3497
See http://msdn.microsoft.com/en-us/library/dd407253%28VS.85%29.aspx?ppud=4 for more information
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ed99377d07a6f48e0c01d81fd00691c92570be0
---
modules/access/dshow/dshow.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp
index 6736b50..641db36 100644
--- a/modules/access/dshow/dshow.cpp
+++ b/modules/access/dshow/dshow.cpp
@@ -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 )
More information about the vlc-commits
mailing list