Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
0ba86c34
Commit
0ba86c34
authored
Apr 22, 2012
by
John Peterson
Committed by
Laurent Aimar
May 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rar: + Support for up to 1001 volume old naming style archive.
parent
1fcf4a83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
modules/access/rar/rar.c
modules/access/rar/rar.c
+9
-3
No files found.
modules/access/rar/rar.c
View file @
0ba86c34
...
...
@@ -289,7 +289,7 @@ static const rar_pattern_t *FindVolumePattern(const char *location)
{
".part1.rar"
,
"%s.part%.1d.rar"
,
2
,
9
},
{
".part01.rar"
,
"%s.part%.2d.rar"
,
2
,
99
,
},
{
".part001.rar"
,
"%s.part%.3d.rar"
,
2
,
999
},
{
".rar"
,
"%s.
r%.2d"
,
0
,
99
},
{
".rar"
,
"%s.
%c%.2d"
,
0
,
9
99
},
{
NULL
,
NULL
,
0
,
0
},
};
...
...
@@ -379,8 +379,14 @@ int RarParse(stream_t *s, int *count, rar_file_t ***file)
}
free
(
volume_mrl
);
if
(
asprintf
(
&
volume_mrl
,
pattern
->
format
,
volume_base
,
volume_index
)
<
0
)
volume_mrl
=
NULL
;
if
(
pattern
->
start
)
{
if
(
asprintf
(
&
volume_mrl
,
pattern
->
format
,
volume_base
,
volume_index
)
<
0
)
volume_mrl
=
NULL
;
}
else
{
if
(
asprintf
(
&
volume_mrl
,
pattern
->
format
,
volume_base
,
'r'
+
volume_index
/
100
,
volume_index
%
100
)
<
0
)
volume_mrl
=
NULL
;
}
free
(
volume_base
);
if
(
!
volume_mrl
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment