[vlc-devel] commit: Fixed rar stream filter. (Laurent Aimar )
git version control
git at videolan.org
Sat Oct 3 19:47:45 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Oct 3 19:45:59 2009 +0200| [1b86b6d14ab61a0a26b5f5b3c36d569abee6593e] | committer: Laurent Aimar
Fixed rar stream filter.
The data offset was wrong (at each chunk).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b86b6d14ab61a0a26b5f5b3c36d569abee6593e
---
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 0e6e541..5c34333 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