diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-05-08 18:22:12 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-05-08 18:22:12 +0200 |
commit | 2c0380ed55be3e8f1757a31a9c6eacb49304df1b (patch) | |
tree | 37ce5bd65b3bbc7010b5a804c9022ed98158019c | |
parent | c15074cd5412c3117950f0d35fb241eff2e06149 (diff) | |
download | gstreamer-plugins-good-2c0380ed55be3e8f1757a31a9c6eacb49304df1b.tar.gz |
Revert "qtdemux: Fix crash on mss stream caused by invalid stsd entry access"
This reverts commit 84cb0852e1184176ab953bda459b811a050dfcd1.
It actually requires further changes to qtdemux.
-rw-r--r-- | gst/isomp4/qtdemux.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index d1351b930..91523e1ba 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -1895,10 +1895,6 @@ gst_qtdemux_setcaps (GstQTDemux * demux, GstCaps * caps) stream = _create_stream (); demux->streams[demux->n_streams] = stream; demux->n_streams = 1; - /* mss has no stsd/stsd entry, use id 0 as default */ - stream->stsd_entries_length = 1; - stream->stsd_sample_description_id = stream->cur_stsd_entry_index = 0; - stream->stsd_entries = g_new0 (QtDemuxStreamStsdEntry, 1); } else { stream = demux->streams[0]; } @@ -3344,11 +3340,6 @@ qtdemux_parse_tfhd (GstQTDemux * qtdemux, GstByteReader * tfhd, if (!gst_byte_reader_skip (tfhd, 4)) goto invalid_track; - if (qtdemux->mss_mode) { - /* mss has no stsd entry */ - (*stream)->stsd_sample_description_id = 0; - } - if (flags & TF_DEFAULT_SAMPLE_DURATION) if (!gst_byte_reader_get_uint32_be (tfhd, default_sample_duration)) goto invalid_track; |