summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2016-04-12 11:38:51 +0100
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-04-12 11:39:48 +0100
commit1bb9d9c6829c42fb61c881165483ffef08420a9f (patch)
treee47aceb4121c8f7a7753bc13a7d2df5021a63a57
parent574bf8e02f1bb025c67bea9836d87213df4707c2 (diff)
qtdemux: check stream is available in PIFF parser
qtdemux->streams is an array, it will never evaluate to true when comparing to NULL. Instead we want to check the number of streams to make sure the stream is available. https://bugzilla.gnome.org/show_bug.cgi?id=753614 CID 1358389
-rw-r--r--gst/isomp4/qtdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index 77d327293..c4aa9c5f4 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -2467,7 +2467,7 @@ qtdemux_parse_piff (GstQTDemux * qtdemux, const guint8 * buffer, gint length,
const gchar *system_id;
gboolean uses_sub_sample_encryption = FALSE;
- if (!qtdemux->streams)
+ if (qtdemux->n_streams == 0)
return;
stream = qtdemux->streams[0];