Commit ecf188e6 authored by Jimmy Ohn's avatar Jimmy Ohn Committed by Sebastian Dröge
Browse files

qtdemux: replace duplicated variable when parsing trex atom

https://bugzilla.gnome.org/show_bug.cgi?id=727878
parent d918212e
......@@ -2380,7 +2380,7 @@ qtdemux_parse_trex (GstQTDemux * qtdemux, QtDemuxStream * stream,
trex = qtdemux_tree_get_child_by_type_full (mvex, FOURCC_trex,
&trex_data);
while (trex) {
guint32 id = 0, dur = 0, size = 0, flags = 0;
guint32 id = 0, dur = 0, size = 0, flags = 0, dummy = 0;
/* skip version/flags */
if (!gst_byte_reader_skip (&trex_data, 4))
......@@ -2390,7 +2390,7 @@ qtdemux_parse_trex (GstQTDemux * qtdemux, QtDemuxStream * stream,
if (id != stream->track_id)
goto next;
/* sample description index; ignore */
if (!gst_byte_reader_get_uint32_be (&trex_data, &dur))
if (!gst_byte_reader_get_uint32_be (&trex_data, &dummy))
goto next;
if (!gst_byte_reader_get_uint32_be (&trex_data, &dur))
goto next;
......
Markdown is supported
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