gst/avi/gstavidemux.c: Prevent out of bounds array access when scrubbing towards the end of the file between the last...
Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_handle_seek): Prevent out of bounds array access when scrubbing towards the end of the file between the last index entry and the end. Fixes occasional 'start <= stop' newsegment event assertions when scrubbing in MJPEG files.
This commit is contained in:
parent
745a950214
commit
a1d0655f73
@ -1,3 +1,11 @@
|
|||||||
|
2006-06-13 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_seek):
|
||||||
|
Prevent out of bounds array access when scrubbing towards
|
||||||
|
the end of the file between the last index entry and the
|
||||||
|
end. Fixes occasional 'start <= stop' newsegment event
|
||||||
|
assertions when scrubbing in MJPEG files.
|
||||||
|
|
||||||
2006-06-12 Tim-Philipp Müller <tim at centricular dot net>
|
2006-06-12 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* tests/check/elements/.cvsignore:
|
* tests/check/elements/.cvsignore:
|
||||||
|
@ -2372,6 +2372,8 @@ gst_avi_demux_handle_seek (GstAviDemux * avi, gboolean update)
|
|||||||
GST_WARNING_OBJECT (avi,
|
GST_WARNING_OBJECT (avi,
|
||||||
"Couldn't find AviIndexEntry for time:%" GST_TIME_FORMAT,
|
"Couldn't find AviIndexEntry for time:%" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (avi->segment.start));
|
GST_TIME_ARGS (avi->segment.start));
|
||||||
|
if (avi->current_entry >= avi->index_size && avi->index_size > 0)
|
||||||
|
avi->current_entry = avi->index_size - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user