mpegdemux: Fix integer overflow

This breaks playback of files >4 GB as the offset was
a guint before. Changing it to a guint64 fixes this.
This commit is contained in:
Matijs van Zuijlen 2009-07-18 08:43:37 +02:00 committed by Sebastian Dröge
parent 4307be631d
commit 01200712ea

View file

@ -2540,7 +2540,7 @@ gst_flups_demux_loop (GstPad * pad)
{
GstFluPSDemux *demux;
GstFlowReturn ret = GST_FLOW_OK;
guint offset = 0;
guint64 offset = 0;
demux = GST_FLUPS_DEMUX (gst_pad_get_parent (pad));
@ -2579,7 +2579,7 @@ gst_flups_demux_loop (GstPad * pad)
goto pause;
}
} else { /* Reverse playback */
guint size = MIN (offset, BLOCK_SZ);
guint64 size = MIN (offset, BLOCK_SZ);
/* pull in data */
ret = gst_flups_demux_pull_block (pad, demux, offset - size, size);