[vlc-commits] demux: asf: fix overflow in seek

Francois Cartegnie git at videolan.org
Mon Nov 25 14:18:56 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 25 10:33:41 2013 +0100| [51785680c51862aa2c22c364c7d73beb74a150fb] | committer: Francois Cartegnie

demux: asf: fix overflow in seek

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=51785680c51862aa2c22c364c7d73beb74a150fb
---

 modules/demux/asf/asf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 9cdf196..ccc295a 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -264,7 +264,7 @@ static int SeekIndex( demux_t *p_demux, mtime_t i_date, float f_pos )
     uint64_t i_offset = (uint64_t)p_index->index_entry[i_entry].i_packet_number *
                         p_sys->p_fp->i_min_data_packet_size;
 
-    if ( stream_Seek( p_demux->s, p_sys->i_data_begin + i_offset ) == VLC_SUCCESS )
+    if ( stream_Seek( p_demux->s, i_offset + p_sys->i_data_begin ) == VLC_SUCCESS )
     {
         es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, VLC_TS_0 + i_date );
         return VLC_SUCCESS;



More information about the vlc-commits mailing list