Commit 1c3bd80c authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 7f81a32f)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 83b47564
......@@ -257,7 +257,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