qtdemux: Don't overflow sample index
authorHosang Lee <hosang10.lee@lge.com>
Fri, 1 Dec 2023 05:51:49 +0000 (14:51 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 1 Dec 2023 15:54:46 +0000 (15:54 +0000)
commit4356d4262e0d2c6bec8b4ebbd5f69c3b25eb551b
treedfd25fe8632adb2172e8a93410c34c1338522c0d
parent890e5533ee915141bc4723ced73a691bcf8c8d3d
qtdemux: Don't overflow sample index

Don't reduce sample index if it is already at 0.
Assigning -1 to a guint32 variable causes unexpected behavior.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5751>
subprojects/gst-plugins-good/gst/isomp4/qtdemux.c