avidemux: fix unused-but-set-variable warning with gcc 4.6

Most likely a leftover from when the index parsing code was rewritten.
This commit is contained in:
Tim-Philipp Müller 2011-04-11 20:05:54 +01:00
parent 063b3d9dcd
commit b6b59ab1c1

View file

@ -2553,7 +2553,6 @@ gst_avi_demux_stream_for_id (GstAviDemux * avi, guint32 id)
static gboolean
gst_avi_demux_parse_index (GstAviDemux * avi, GstBuffer * buf)
{
guint64 pos_before;
guint8 *data;
guint size;
guint i, num, n;
@ -2579,7 +2578,6 @@ gst_avi_demux_parse_index (GstAviDemux * avi, GstBuffer * buf)
GST_INFO_OBJECT (avi, "Parsing index, nr_entries = %6d", num);
index = (gst_riff_index_entry *) data;
pos_before = avi->offset;
/* figure out if the index is 0 based or relative to the MOVI start */
entry.offset = GST_READ_UINT32_LE (&index[0].offset);