Commit d9c00098 authored by Benjamin Pracht's avatar Benjamin Pracht

* Backport of r15333

parent 95cdf2b3
...@@ -374,15 +374,27 @@ static int InitVideo( vout_thread_t *p_vout ) ...@@ -374,15 +374,27 @@ static int InitVideo( vout_thread_t *p_vout )
switch( p_vout->output.i_chroma ) switch( p_vout->output.i_chroma )
{ {
case VLC_FOURCC('R','V','1','5'): case VLC_FOURCC('R','V','1','6'):
#if defined( WORDS_BIGENDIAN )
p_vout->output.i_rmask = 0xf800;
p_vout->output.i_gmask = 0x07e0;
p_vout->output.i_bmask = 0x001f;
#else
p_vout->output.i_rmask = 0x001f; p_vout->output.i_rmask = 0x001f;
p_vout->output.i_gmask = 0x07e0; p_vout->output.i_gmask = 0x07e0;
p_vout->output.i_bmask = 0xf800; p_vout->output.i_bmask = 0xf800;
#endif
break; break;
case VLC_FOURCC('R','V','1','6'): case VLC_FOURCC('R','V','1','5'):
#if defined( WORDS_BIGENDIAN )
p_vout->output.i_rmask = 0x7c00;
p_vout->output.i_gmask = 0x03e0;
p_vout->output.i_bmask = 0x001f;
#else
p_vout->output.i_rmask = 0x001f; p_vout->output.i_rmask = 0x001f;
p_vout->output.i_gmask = 0x03e0; p_vout->output.i_gmask = 0x03e0;
p_vout->output.i_bmask = 0x7c00; p_vout->output.i_bmask = 0x7c00;
#endif
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment