typefindfunctions: Refactor ftyp brands checking
authorSebastian Dröge <sebastian@centricular.com>
Sat, 23 Oct 2021 11:30:02 +0000 (14:30 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 25 Oct 2021 09:17:42 +0000 (09:17 +0000)
commit041bc2652bcc03227c4a57bf43a5322bde65924c
tree32f609335152c4428fc79d9da07b43b6e8641ab8
parent66aef5ef46122cbb303d9eb42f662a2c9befd2bc
typefindfunctions: Refactor ftyp brands checking

Store known brands in arrays and add a helper function to check them.

Also add all the `iso3` to `isob` ISO brands and the `hlsf` ISO
fragmented brand.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1234>
subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c