From d71dd647173b0f40028c1e930ad9a3e503ad5e35 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Thu, 3 Oct 2024 12:48:31 +0200 Subject: [PATCH] qtdemux: fix parsing of matrix with 180 rotation Part-of: --- subprojects/gst-plugins-good/gst/isomp4/qtdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index c88a4b351d..6c8a7999dd 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -11398,7 +11398,8 @@ qtdemux_inspect_transformation_matrix (GstQTDemux * qtdemux, /* NOP */ } else if (QTCHECK_MATRIX (matrix, 0, 1, G_MAXUINT16, 0)) { rotation_tag = "rotate-90"; - } else if (QTCHECK_MATRIX (matrix, G_MAXUINT16, 0, 0, G_MAXUINT16)) { + } else if (QTCHECK_MATRIX (matrix, G_MAXUINT16, 0, 0, G_MAXUINT16) || + QTCHECK_MATRIX (matrix, G_MAXUINT16, 0, 0, 1)) { rotation_tag = "rotate-180"; } else if (QTCHECK_MATRIX (matrix, 0, G_MAXUINT16, 1, 0)) { rotation_tag = "rotate-270";