[vlc-commits] Ignore files without their beginning in RAR archive.
Laurent Aimar
git at videolan.org
Tue Jan 10 21:24:26 CET 2012
vlc/vlc-1.2 | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan 8 22:09:55 2012 +0100| [58d6e3bcca151d024c321fed8d2c42f3b40f15b3] | committer: Jean-Baptiste Kempf
Ignore files without their beginning in RAR archive.
(cherry picked from commit 1ac5b35ca17c3316a5cc1ef4ddda3dcd98f27de8)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=58d6e3bcca151d024c321fed8d2c42f3b40f15b3
---
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 40c47ca..ceea9da 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