[vlc-commits] Do not check file size coherency on multi-parts rar.

Laurent Aimar git at videolan.org
Wed Jul 6 23:48:56 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Jul  6 23:23:46 2011 +0200| [1baf26db7bf42aeb61cb7c9aadce4b101fbf33fa] | committer: Laurent Aimar

Do not check file size coherency on multi-parts rar.

Some tools seem to generate multi-parts rar where only the first chunk
contains the actual file size.

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

 modules/access/rar/rar.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/modules/access/rar/rar.c b/modules/access/rar/rar.c
index 4079d81..c2f605e 100644
--- a/modules/access/rar/rar.c
+++ b/modules/access/rar/rar.c
@@ -201,7 +201,6 @@ static int SkipFile(stream_t *s, int *count, rar_file_t ***file, const rar_block
 
     if (current &&
         (current->is_complete ||
-          current->size != file_size ||
           strcmp(current->name, name) ||
           (hdr->flags & RAR_BLOCK_FILE_HAS_PREVIOUS) == 0))
         current = NULL;



More information about the vlc-commits mailing list