]> git.sesse.net Git - vlc/commitdiff
Fixed rar stream filter.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 3 Oct 2009 17:45:59 +0000 (19:45 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 3 Oct 2009 17:47:30 +0000 (19:47 +0200)
The data offset was wrong (at each chunk).

modules/stream_filter/rar.c

index 0e6e541ce68cd9713cf20bfd6cf2c0c2765f3e97..5c343338b1d62572e14c411cefa9cfa0db372a04 100644 (file)
@@ -525,7 +525,7 @@ static int SkipFile( stream_t *s,const rar_block_t *p_hdr )
             rar_file_chunk_t *p_chunk = malloc( sizeof( *p_chunk ) );
             if( p_chunk )
             {
-                p_chunk->i_offset = stream_Tell( s->p_source );
+                p_chunk->i_offset = stream_Tell( s->p_source ) + p_hdr->i_size;
                 p_chunk->i_size = p_hdr->i_add_size;
                 p_chunk->i_cummulated_size = 0;
                 if( p_current->i_chunk > 0 )