[vlc-commits] hw:d3d9: don't swap planes when the output is I420
Steve Lhomme
git at videolan.org
Fri Jan 26 15:20:31 CET 2018
vlc | branch: master | Steve Lhomme <robUx4 at gmail.com> | Fri Jan 26 15:13:54 2018 +0100| [fa54402677d68d7ebcc113002ccaa5b95ff38f22] | committer: Steve Lhomme
hw:d3d9: don't swap planes when the output is I420
Fixes #19543
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fa54402677d68d7ebcc113002ccaa5b95ff38f22
---
modules/hw/d3d9/dxa9.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/hw/d3d9/dxa9.c b/modules/hw/d3d9/dxa9.c
index d5d46073bf..3aac41dda6 100644
--- a/modules/hw/d3d9/dxa9.c
+++ b/modules/hw/d3d9/dxa9.c
@@ -121,7 +121,9 @@ static void DXA9_YV12(filter_t *p_filter, picture_t *src, picture_t *dst)
Copy420_SP_to_P(dst, plane, pitch,
__MIN(desc.Height, src->format.i_y_offset + src->format.i_visible_height),
p_copy_cache);
- picture_SwapUV(dst);
+
+ if (dst->format.i_chroma != VLC_CODEC_I420)
+ picture_SwapUV(dst);
} else {
msg_Err(p_filter, "Unsupported DXA9 conversion from 0x%08X to YV12", desc.Format);
}
More information about the vlc-commits
mailing list