qtdemux: bail out when encountering an atom with a size of 0
authorMatthew Waters <matthew@centricular.com>
Thu, 25 Jun 2020 06:35:45 +0000 (16:35 +1000)
committerMatthew Waters <matthew@centricular.com>
Mon, 21 Sep 2020 02:08:14 +0000 (12:08 +1000)
commit37f0119f49904b186f1f237872535a7f30003eb5
tree930526e55b46c4c28d8fef3fc61fdad7d9bfdabd
parent868149ca5a3a481703b47121a68082d13f1ac8ea
qtdemux: bail out when encountering an atom with a size of 0

A size 0 atom means the atom extends to the end of the file.  No further
valid atoms will ever follow.  Avoids a subsequent scan for an atom from
one byte earlier after encountering a size 0 atom.

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