mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 01:54:11 +00:00
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:
parent
4307be631d
commit
01200712ea
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue