Commit 09d1c6e1 authored by Laurent Aimar's avatar Laurent Aimar

Improved detection of splitted RAR archives.

Some rar archives doesn't have an end block.
parent 28c141ee
...@@ -351,7 +351,8 @@ int RarParse(stream_t *s, int *count, rar_file_t ***file) ...@@ -351,7 +351,8 @@ int RarParse(stream_t *s, int *count, rar_file_t ***file)
if (vol != s) if (vol != s)
stream_Delete(vol); stream_Delete(vol);
if (!has_next || !pattern) { if (!has_next || !pattern ||
(*count > 0 && !(*file)[*count -1]->is_complete)) {
free(volume_mrl); free(volume_mrl);
return VLC_SUCCESS; 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