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

git version control git at videolan.org
Fri Jan 16 18:32:30 CET 2009


vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Wed Jan 14 23:30:50 2009 +0100| [f0cf0abddcdafc7a99878c215705957ae437ffb3] | committer: Christophe Mutricy 

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.
(cherry picked from commit c84de2baca5eae6b942a388bb234e34d4cdd3f22)

Signed-off-by: Christophe Mutricy <xtophe at videolan.org>

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

 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 0fc2301..685fc8f 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -523,8 +523,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