qtdemux: fix parsing of matrix with 180 rotation

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7665>
This commit is contained in:
Andoni Morales Alastruey 2024-10-03 12:48:31 +02:00 committed by Backport Bot
parent 119e624f73
commit d71dd64717

View file

@ -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";