Commit 2faa3d9d authored by André Weber's avatar André Weber

Win32: bugfix for blueish video colors useing DirectX Overlay Output

The fourcc of I420 was not recognized durring vout init so a fallback to YV12
was used - which flipped the U and V colorplanes.

(I'am not sure if this is the correct solution for this, a developer knowing
the video output more in detail should have a look on this.)
parent 06fb425b
...@@ -366,7 +366,13 @@ static int Init( vout_thread_t *p_vout ) ...@@ -366,7 +366,13 @@ static int Init( vout_thread_t *p_vout )
case VLC_CODEC_YVYU: case VLC_CODEC_YVYU:
p_vout->output.i_chroma = VLC_CODEC_YVYU; p_vout->output.i_chroma = VLC_CODEC_YVYU;
break; break;
case VLC_CODEC_I420:
p_vout->output.i_chroma = VLC_CODEC_I420;
break;
default: default:
msg_Dbg( p_vout, "use default chroma YV12 for render " \
"chroma (%4.4s)",
(char *)&p_vout->render.i_chroma);
p_vout->output.i_chroma = VLC_CODEC_YV12; p_vout->output.i_chroma = VLC_CODEC_YV12;
break; break;
} }
...@@ -1618,6 +1624,7 @@ static int UpdatePictureStruct( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -1618,6 +1624,7 @@ static int UpdatePictureStruct( vout_thread_t *p_vout, picture_t *p_pic )
/* U and V inverted compared to I420 /* U and V inverted compared to I420
* Fixme: this should be handled by the vout core */ * Fixme: this should be handled by the vout core */
/* could this be right? */
p_vout->output.i_chroma = VLC_CODEC_I420; p_vout->output.i_chroma = VLC_CODEC_I420;
p_pic->Y_PIXELS = p_pic->p_sys->ddsd.lpSurface; p_pic->Y_PIXELS = p_pic->p_sys->ddsd.lpSurface;
......
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