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

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


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

Improved detection of splitted RAR archives.

Some rar archives doesn't have an end block.

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

 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 7a42cbf..c1d60c1 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