qtdemux: fix: sample description index override in tfhd not evaluated

https://bugzilla.gnome.org/show_bug.cgi?id=778337
This commit is contained in:
Jürgen Sachs 2017-04-11 13:41:48 +02:00 committed by Edward Hervey
parent 26f9869668
commit 9684c88c60

View file

@ -3426,9 +3426,12 @@ qtdemux_parse_tfhd (GstQTDemux * qtdemux, GstByteReader * tfhd,
default_sample_duration, default_sample_size, default_sample_flags); default_sample_duration, default_sample_size, default_sample_flags);
/* FIXME: Handle TF_SAMPLE_DESCRIPTION_INDEX properly */ /* FIXME: Handle TF_SAMPLE_DESCRIPTION_INDEX properly */
if (flags & TF_SAMPLE_DESCRIPTION_INDEX) if (flags & TF_SAMPLE_DESCRIPTION_INDEX) {
if (!gst_byte_reader_skip (tfhd, 4)) guint32 sample_description_index;
if (!gst_byte_reader_get_uint32_be (tfhd, &sample_description_index))
goto invalid_track; goto invalid_track;
(*stream)->stsd_sample_description_id = sample_description_index - 1;
}
if (flags & TF_DEFAULT_SAMPLE_DURATION) if (flags & TF_DEFAULT_SAMPLE_DURATION)
if (!gst_byte_reader_get_uint32_be (tfhd, default_sample_duration)) if (!gst_byte_reader_get_uint32_be (tfhd, default_sample_duration))