[vlc-commits] Ignore files without their beginning in RAR archive.

Laurent Aimar git at videolan.org
Tue Jan 10 20:54:13 CET 2012


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan  8 22:09:55 2012 +0100| [1ac5b35ca17c3316a5cc1ef4ddda3dcd98f27de8] | committer: Laurent Aimar

Ignore files without their beginning in RAR archive.

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

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

diff --git a/modules/access/rar/rar.c b/modules/access/rar/rar.c
index c1d60c1..0a6cac4 100644
--- a/modules/access/rar/rar.c
+++ b/modules/access/rar/rar.c
@@ -209,6 +209,8 @@ static int SkipFile(stream_t *s, int *count, rar_file_t ***file,
         current = NULL;
 
     if (!current) {
+        if (hdr->flags & RAR_BLOCK_FILE_HAS_PREVIOUS)
+            goto exit;
         current = malloc(sizeof(*current));
         if (!current)
             goto exit;



More information about the vlc-commits mailing list