summaryrefslogtreecommitdiff
path: root/subprojects
diff options
context:
space:
mode:
authorXabier Rodriguez Calvar <calvaris@igalia.com>2023-05-02 11:32:01 +0200
committerXabier Rodriguez Calvar <calvaris@igalia.com>2023-05-02 11:32:01 +0200
commit66c15bc753f2aeb58fd08dd08354e3b0ae043192 (patch)
tree9e2fcd7edc6b7edb7d9fc8822f52fdd7f2822213 /subprojects
parentd9c853f165288071b63af9a56b6d76e358fbdcc2 (diff)
downloadgstreamer-66c15bc753f2aeb58fd08dd08354e3b0ae043192.tar.gz
qtdemux: Fix segfault in cenc sample grouping
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4523>
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/gst-plugins-good/gst/isomp4/qtdemux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c
index 8c09438da1..3d668a9c8e 100644
--- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c
+++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c
@@ -4428,7 +4428,8 @@ qtdemux_parse_moof (GstQTDemux * qtdemux, const guint8 * buffer, guint length,
goto missing_tfhd;
/* Sample grouping support */
- if (stream->protected && (stream->protection_scheme_type == FOURCC_cenc
+ if (stream != NULL && stream->protected
+ && (stream->protection_scheme_type == FOURCC_cenc
|| stream->protection_scheme_type == FOURCC_cbcs)) {
QtDemuxCencSampleSetInfo *info = stream->protection_scheme_info;
GNode *sbgp_node, *sgpd_node;