[vlc-commits] demux: asf: fix seek boundaries

Francois Cartegnie git at videolan.org
Tue Nov 26 15:33:52 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 26 14:20:32 2013 +0100| [b43f53f929c627fe519ec4fd069749d799c76432] | committer: Francois Cartegnie

demux: asf: fix seek boundaries

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

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

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 1ec30c0..7e5b935 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -1162,6 +1162,7 @@ static int DemuxInit( demux_t *p_demux )
     { /* local file */
         p_sys->i_data_end = p_sys->p_root->p_data->i_object_pos +
                                     p_sys->p_root->p_data->i_object_size;
+        p_sys->i_data_end = __MIN( stream_Size( p_demux->s ), p_sys->i_data_end );
     }
     else
     { /* live/broacast */



More information about the vlc-commits mailing list