[vlc-devel] commit: Partially revert 497a6b5b as it creates infinite loops with avformat. ( Laurent Aimar )

git version control git at videolan.org
Wed Jan 14 23:46:02 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Jan 14 23:30:50 2009 +0100| [c84de2baca5eae6b942a388bb234e34d4cdd3f22] | committer: Laurent Aimar 

Partially revert 497a6b5b as it creates infinite loops with avformat.

I am not sure that the reverted part was really intented.
Reported by Jonathan Brossard, iViZ Techno Solutions Pvt. Ltd.

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

 modules/demux/avformat/demux.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 1841ce5..237c168 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -676,8 +676,12 @@ static int64_t IOSeek( void *opaque, int64_t offset, int whence )
             return -1;
 
     }
+
     if( i_absolute < 0 )
-        i_absolute = 0;
+    {
+        msg_Dbg( p_demux, "Trying to seek before the beginning" );
+        return -1;
+    }
 
     if( i_size > 0 && i_absolute >= i_size )
     {




More information about the vlc-devel mailing list