Commit 7f81a32f authored by Steve Lhomme's avatar Steve Lhomme

hw:d3d9:dxa9: swap UV planes when converting I420 to NV12 in direct3d9

Same thing we do when converting NV12 to I420 in the same file.

Fixes #19482
parent 7b77937d
......@@ -251,7 +251,12 @@ static void YV12_D3D9(filter_t *p_filter, picture_t *src, picture_t *dst)
picture_UpdatePlanes(sys->staging, d3drect.pBits, d3drect.Pitch);
picture_Hold( src );
if (src->format.i_chroma == VLC_CODEC_I420)
plane_SwapUV( src->p );
sys->filter->pf_video_filter(sys->filter, src);
if (src->format.i_chroma == VLC_CODEC_I420)
plane_SwapUV( src->p );
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