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 0e6e541..5c34333 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 )