[vlc-commits] hw:d3d9: don't swap planes when the output is I420

Steve Lhomme git at videolan.org
Fri Jan 26 15:50:55 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robUx4 at gmail.com> | Fri Jan 26 15:13:54 2018 +0100| [52c89413e74e322e9b0361e5a2bb427e1ee295fc] | committer: Jean-Baptiste Kempf

hw:d3d9: don't swap planes when the output is I420

Fixes #19543

(cherry picked from commit fa54402677d68d7ebcc113002ccaa5b95ff38f22)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=52c89413e74e322e9b0361e5a2bb427e1ee295fc
---

 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 04f53fa40a..fd26261ada 100644
--- a/modules/hw/d3d9/dxa9.c
+++ b/modules/hw/d3d9/dxa9.c
@@ -134,7 +134,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