Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
185dff3d
Commit
185dff3d
authored
Jun 27, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/dvdread.c: got rid of warnings.
parent
29c0bd55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
24 deletions
+22
-24
modules/access/dvdread.c
modules/access/dvdread.c
+22
-24
No files found.
modules/access/dvdread.c
View file @
185dff3d
...
@@ -112,9 +112,9 @@ struct demux_sys_t
...
@@ -112,9 +112,9 @@ struct demux_sys_t
ifo_handle_t
*
p_vmg_file
;
ifo_handle_t
*
p_vmg_file
;
ifo_handle_t
*
p_vts_file
;
ifo_handle_t
*
p_vts_file
;
unsigned
int
i_title
;
int
i_title
;
unsigned
int
i_chapter
,
i_chapters
;
int
i_chapter
,
i_chapters
;
unsigned
int
i_angle
,
i_angles
;
int
i_angle
,
i_angles
;
tt_srpt_t
*
p_tt_srpt
;
tt_srpt_t
*
p_tt_srpt
;
pgc_t
*
p_cur_pgc
;
pgc_t
*
p_cur_pgc
;
...
@@ -123,20 +123,20 @@ struct demux_sys_t
...
@@ -123,20 +123,20 @@ struct demux_sys_t
int
i_ttn
;
int
i_ttn
;
unsigned
int
i_pack_len
;
int
i_pack_len
;
unsigned
int
i_cur_block
;
int
i_cur_block
;
unsigned
int
i_next_vobu
;
int
i_next_vobu
;
/* Current title start/end blocks */
/* Current title start/end blocks */
unsigned
int
i_title_start_block
;
int
i_title_start_block
;
unsigned
int
i_title_end_block
;
int
i_title_end_block
;
unsigned
int
i_title_blocks
;
int
i_title_blocks
;
unsigned
int
i_title_offset
;
int
i_title_offset
;
unsigned
int
i_title_start_cell
;
int
i_title_start_cell
;
unsigned
int
i_title_end_cell
;
int
i_title_end_cell
;
unsigned
int
i_cur_cell
;
int
i_cur_cell
;
unsigned
int
i_next_cell
;
int
i_next_cell
;
/* track */
/* track */
ps_track_t
tk
[
PS_TK_COUNT
];
ps_track_t
tk
[
PS_TK_COUNT
];
...
@@ -651,10 +651,8 @@ static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
...
@@ -651,10 +651,8 @@ static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
int
i_angle
)
int
i_angle
)
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
int
pgc_id
=
0
;
int
pgc_id
=
0
,
pgn
=
0
;
int
pgn
=
0
;
int
i
;
int
i
;
vlc_value_t
val
;
#define p_pgc p_sys->p_cur_pgc
#define p_pgc p_sys->p_cur_pgc
#define p_vmg p_sys->p_vmg_file
#define p_vmg p_sys->p_vmg_file
...
@@ -940,10 +938,10 @@ static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
...
@@ -940,10 +938,10 @@ static int DvdReadSetArea( demux_t *p_demux, int i_title, int i_chapter,
static
void
DvdReadSeek
(
demux_t
*
p_demux
,
int
i_block_offset
)
static
void
DvdReadSeek
(
demux_t
*
p_demux
,
int
i_block_offset
)
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
unsigned
int
i_chapter
=
0
;
int
i_chapter
=
0
;
unsigned
int
i_cell
=
0
;
int
i_cell
=
0
;
unsigned
int
i_vobu
=
0
;
int
i_vobu
=
0
;
unsigned
int
i_sub_cell
=
0
;
int
i_sub_cell
=
0
;
int
i_block
;
int
i_block
;
#define p_pgc p_sys->p_cur_pgc
#define p_pgc p_sys->p_cur_pgc
...
@@ -980,7 +978,7 @@ static void DvdReadSeek( demux_t *p_demux, int i_block_offset )
...
@@ -980,7 +978,7 @@ static void DvdReadSeek( demux_t *p_demux, int i_block_offset )
i_tmp
=
p_vts
->
vts_pgcit
->
pgci_srp
[
pgc_id
-
1
].
pgc
->
program_map
[
pgn
-
1
];
i_tmp
=
p_vts
->
vts_pgcit
->
pgci_srp
[
pgc_id
-
1
].
pgc
->
program_map
[
pgn
-
1
];
if
(
i_tmp
>
(
int
)
i_cell
)
break
;
if
(
i_tmp
>
i_cell
)
break
;
}
}
if
(
i_chapter
<
p_sys
->
i_chapters
&&
if
(
i_chapter
<
p_sys
->
i_chapters
&&
...
@@ -991,7 +989,7 @@ static void DvdReadSeek( demux_t *p_demux, int i_block_offset )
...
@@ -991,7 +989,7 @@ static void DvdReadSeek( demux_t *p_demux, int i_block_offset )
}
}
/* Find vobu */
/* Find vobu */
while
(
p_vts
->
vts_vobu_admap
->
vobu_start_sectors
[
i_vobu
]
<=
i_block
)
while
(
(
int
)
p_vts
->
vts_vobu_admap
->
vobu_start_sectors
[
i_vobu
]
<=
i_block
)
{
{
i_vobu
++
;
i_vobu
++
;
}
}
...
...
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