From 01200712ead2c6d94ab29c9af2f283f34844e4d7 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Sat, 18 Jul 2009 08:43:37 +0200 Subject: 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. --- gst/mpegdemux/gstmpegdemux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c index ce1d0978..51b1ff1b 100644 --- a/gst/mpegdemux/gstmpegdemux.c +++ b/gst/mpegdemux/gstmpegdemux.c @@ -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); -- cgit v1.2.1