[vlc-commits] Improved detection of splitted RAR archives.

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:07:08 2012 +0100| [adb6aa03545a62092aca3e1e8e62cc78255a76d0] | committer: Jean-Baptiste Kempf

Improved detection of splitted RAR archives.

Some rar archives doesn't have an end block.
(cherry picked from commit 09d1c6e1891cdc914d25279aabdd83c13baab227)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/access/rar/rar.c b/modules/access/rar/rar.c
index fb6539b..40c47ca 100644
--- a/modules/access/rar/rar.c
+++ b/modules/access/rar/rar.c
@@ -351,7 +351,8 @@ int RarParse(stream_t *s, int *count, rar_file_t ***file)
         if (vol != s)
             stream_Delete(vol);
 
-        if (!has_next || !pattern) {
+        if (!has_next || !pattern ||
+            (*count > 0 && !(*file)[*count -1]->is_complete)) {
             free(volume_mrl);
             return VLC_SUCCESS;
         }



More information about the vlc-commits mailing list