[vlc-devel] commit: Fixed rar stream filter. (Laurent Aimar )
git version control
git at videolan.org
Sat Oct 3 19:49:03 CEST 2009
vlc | branch: 1.0-bugfix | Laurent Aimar <fenrir at videolan.org> | Sat Oct 3 19:45:59 2009 +0200| [8e499683df992c7d46b0a097d1e238999195c187] | committer: Laurent Aimar
Fixed rar stream filter.
The data offset was wrong (at each chunk).
(cherry picked from commit 1b86b6d14ab61a0a26b5f5b3c36d569abee6593e)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8e499683df992c7d46b0a097d1e238999195c187
---
modules/stream_filter/rar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/stream_filter/rar.c b/modules/stream_filter/rar.c
index a5fd829..f828058 100644
--- a/modules/stream_filter/rar.c
+++ b/modules/stream_filter/rar.c
@@ -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 )
More information about the vlc-devel
mailing list