qtdemux: fix parsing of matrix with 180 rotation

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7607>
This commit is contained in:
Andoni Morales Alastruey 2024-10-03 12:48:31 +02:00 committed by GStreamer Marge Bot
parent dc4dd415f0
commit 15c990a8d8

View file

@ -11405,7 +11405,8 @@ qtdemux_inspect_transformation_matrix (GstQTDemux * qtdemux,
/* NOP */ /* NOP */
} else if (QTCHECK_MATRIX (matrix, 0, 1, G_MAXUINT16, 0)) { } else if (QTCHECK_MATRIX (matrix, 0, 1, G_MAXUINT16, 0)) {
rotation_tag = "rotate-90"; 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"; rotation_tag = "rotate-180";
} else if (QTCHECK_MATRIX (matrix, 0, G_MAXUINT16, 1, 0)) { } else if (QTCHECK_MATRIX (matrix, 0, G_MAXUINT16, 1, 0)) {
rotation_tag = "rotate-270"; rotation_tag = "rotate-270";