qtdemux: Fixup for orientation matrix parsing

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8127>
This commit is contained in:
Jochen Henneberg 2024-12-17 10:48:45 +01:00 committed by GStreamer Marge Bot
parent c4d0f4bbd9
commit 5c005733ea

View file

@ -11471,14 +11471,13 @@ 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) ||
QTCHECK_MATRIX (matrix, G_MAXUINT16, 0, 0, 1)) {
} else if (QTCHECK_MATRIX (matrix, G_MAXUINT16, 0, 0, G_MAXUINT16)) {
rotation_tag = "rotate-180";
} else if (QTCHECK_MATRIX (matrix, 0, G_MAXUINT16, 1, 0)) {
rotation_tag = "rotate-270";
} else if (QTCHECK_MATRIX (matrix, G_MAXUINT16, 0, 0, 1)) {
rotation_tag = "flip-rotate-0";
} else if (QTCHECK_MATRIX (matrix, 0, G_MAXUINT16, 1, 0)) {
} else if (QTCHECK_MATRIX (matrix, 0, G_MAXUINT16, G_MAXUINT16, 0)) {
rotation_tag = "flip-rotate-90";
} else if (QTCHECK_MATRIX (matrix, 1, 0, 0, G_MAXUINT16)) {
rotation_tag = "flip-rotate-180";