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
fdba1721
Commit
fdba1721
authored
May 18, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: more conditional commands + avoid a compiler warning
parent
fb9a7160
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+25
-3
No files found.
modules/demux/mkv.cpp
View file @
fdba1721
...
...
@@ -5528,9 +5528,7 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
uint16
i_cr2
;
switch
(
i_command
>>
12
)
{
case
0
:
case
1
:
case
2
:
default:
i_cr1
=
p_command
[
3
];
i_cr2
=
(
p_command
[
4
]
<<
8
)
+
p_command
[
5
];
break
;
...
...
@@ -5571,6 +5569,14 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
b_test_positive
=
false
;
}
break
;
case
CMD_DVD_IF_GPREG_NOT_EQUAL
:
// if not equals
msg_Dbg
(
&
sys
.
demuxer
,
"IF %s NOT EQUALS %s"
,
GetRegTypeName
(
false
,
i_cr1
).
c_str
(),
GetRegTypeName
(
b_test_value
,
i_value
).
c_str
()
);
if
(
!
(
GetPRM
(
i_cr1
)
!=
i_value
))
{
b_test_positive
=
false
;
}
break
;
case
CMD_DVD_IF_GPREG_INF
:
// if inferior
msg_Dbg
(
&
sys
.
demuxer
,
"IF %s < %s"
,
GetRegTypeName
(
false
,
p_command
[
3
]
).
c_str
(),
GetRegTypeName
(
b_test_value
,
i_value
).
c_str
()
);
...
...
@@ -5579,6 +5585,14 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
b_test_positive
=
false
;
}
break
;
case
CMD_DVD_IF_GPREG_INF_EQUAL
:
// if inferior or equal
msg_Dbg
(
&
sys
.
demuxer
,
"IF %s < %s"
,
GetRegTypeName
(
false
,
p_command
[
3
]
).
c_str
(),
GetRegTypeName
(
b_test_value
,
i_value
).
c_str
()
);
if
(
!
(
GetPRM
(
i_cr1
)
<=
i_value
))
{
b_test_positive
=
false
;
}
break
;
case
CMD_DVD_IF_GPREG_AND
:
// if logical and
msg_Dbg
(
&
sys
.
demuxer
,
"IF %s & %s"
,
GetRegTypeName
(
false
,
p_command
[
3
]
).
c_str
(),
GetRegTypeName
(
b_test_value
,
i_value
).
c_str
()
);
...
...
@@ -5587,6 +5601,14 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
b_test_positive
=
false
;
}
break
;
case
CMD_DVD_IF_GPREG_SUP
:
// if superior
msg_Dbg
(
&
sys
.
demuxer
,
"IF %s >= %s"
,
GetRegTypeName
(
false
,
p_command
[
3
]
).
c_str
(),
GetRegTypeName
(
b_test_value
,
i_value
).
c_str
()
);
if
(
!
(
GetPRM
(
i_cr1
)
>
i_value
))
{
b_test_positive
=
false
;
}
break
;
case
CMD_DVD_IF_GPREG_SUP_EQUAL
:
// if superior or equal
msg_Dbg
(
&
sys
.
demuxer
,
"IF %s >= %s"
,
GetRegTypeName
(
false
,
p_command
[
3
]
).
c_str
(),
GetRegTypeName
(
b_test_value
,
i_value
).
c_str
()
);
...
...
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