Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ad4cf303
Commit
ad4cf303
authored
Dec 06, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IFO: fix DVD-VR as well
parent
5aca149e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/demux/playlist/ifo.c
modules/demux/playlist/ifo.c
+8
-6
No files found.
modules/demux/playlist/ifo.c
View file @
ad4cf303
...
...
@@ -30,6 +30,7 @@
#include <vlc_common.h>
#include <vlc_demux.h>
#include <assert.h>
#include "playlist.h"
...
...
@@ -120,14 +121,15 @@ static int Demux( demux_t *p_demux )
static
int
DemuxDVD_VR
(
demux_t
*
p_demux
)
{
char
*
psz_url
=
strdup
(
p_demux
->
psz_file
);
size_t
len
=
strlen
(
p_demux
->
psz_location
);
char
*
psz_url
=
malloc
(
len
+
1
);
if
(
!
psz_url
)
if
(
unlikely
(
psz_url
==
NULL
)
)
return
0
;
size_t
len
=
strlen
(
psz_url
)
;
strncpy
(
psz_url
+
len
-
12
,
"VR_MOVIE.VRO"
,
12
);
assert
(
len
>=
12
);
len
-=
12
;
memcpy
(
psz_url
,
p_demux
->
psz_location
,
len
);
memcpy
(
psz_url
+
len
,
"VR_MOVIE.VRO"
,
13
);
input_item_t
*
p_current_input
=
GetCurrentItem
(
p_demux
);
input_item_t
*
p_input
=
input_item_New
(
p_demux
,
psz_url
,
psz_url
);
...
...
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