Commit adb6aa03 authored by Laurent Aimar's avatar Laurent Aimar Committed by 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: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7704eec3
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment