avidemux: push mode: find the correct chunk for segment following seek

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=684977
This commit is contained in:
Mark Nauwelaerts 2012-09-28 16:50:25 +02:00
parent f0db4a8213
commit 511dfa5ee5

View file

@ -767,7 +767,7 @@ gst_avi_demux_handle_sink_event (GstPad * pad, GstObject * parent,
k = i;
}
/* exact match needs no further searching */
if (stream->index[index].offset == segment.start)
if (stream->index[index].offset == boffset)
break;
} while (++i < avi->num_streams);
boffset -= 8;