Commit ef691f38 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

gst/qtdemux/qtdemux.c: Fix crash dereferencing NULL pointer if there's no stco atom.

Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (qtdemux_parse_trak):
Fix crash dereferencing NULL pointer if there's no stco atom.
Fixes #387122.
parent 75847358
......@@ -3682,7 +3682,10 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
co64 = qtdemux_tree_get_child_by_type (stbl, FOURCC_co64);
if (stco == NULL && co64 == NULL)
goto corrupt_file;
stco_data = (const guint8 *) stco->data;
if (stco)
stco_data = (const guint8 *) stco->data;
else
stco_data = NULL;
/* sample time */
stts = qtdemux_tree_get_child_by_type (stbl, FOURCC_stts);
if (stts == NULL)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment