qtdemux: exit when protection caps are not defined during PIFF parsing
authorJacek Skiba <jacek.skiba@consult.red>
Wed, 7 Dec 2022 08:47:49 +0000 (09:47 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 7 Dec 2022 18:35:37 +0000 (18:35 +0000)
commit61c17c5665a05d9c68627ecda407f9ffc9719d50
tree2c7ab0264632d6d02aaa3e7fbfadf5a07712e328
parente49e0198f15ebe7e2c96b57011299d8bf6273a6c
qtdemux: exit when protection caps are not defined during PIFF parsing

Reproduction testcase (uses PlayReady):
https://developers.canal-plus.com/rx-player/upc/?appTileLocation=[object%20Object]

In test streams we are using PIFF box, but caps did not had
present GST_PROTECTION_SYSTEM_ID_CAPS_FIELD. In consequence, invalid
system_id was returned which caused SIGSEGV crash.

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