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
31fef8bd
Commit
31fef8bd
authored
Aug 20, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlp: Fix a bunch of warnings.
parent
f901bb49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
modules/packetizer/mlp.c
modules/packetizer/mlp.c
+10
-7
No files found.
modules/packetizer/mlp.c
View file @
31fef8bd
...
...
@@ -56,15 +56,15 @@ vlc_module_end ()
typedef
struct
{
int
i_type
;
int
i_rate
;
int
i_channels
;
unsigned
i_rate
;
unsigned
i_channels
;
int
i_channels_conf
;
int
i_samples
;
unsigned
i_samples
;
bool
b_vbr
;
int
i_bitrate
;
unsigned
i_bitrate
;
int
i_substreams
;
unsigned
i_substreams
;
}
mlp_header_t
;
...
...
@@ -392,7 +392,10 @@ static int MlpParse( mlp_header_t *p_mlp, const uint8_t p_hdr[MLP_HEADER_SYNC] )
bs_skip
(
&
s
,
4
+
4
);
i_rate_idx1
=
bs_read
(
&
s
,
4
);
const
int
i_rate_idx2
=
bs_read
(
&
s
,
4
);
// Just skip the 4 following, since we don't use it
// const int i_rate_idx2 = bs_read( &s, 4 );
bs_skip
(
&
s
,
4
);
bs_skip
(
&
s
,
11
);
...
...
@@ -465,7 +468,7 @@ static int SyncInfo( const uint8_t *p_hdr, bool *pb_mlp, mlp_header_t *p_mlp )
int
i_tmp
=
0
^
p_hdr
[
0
]
^
p_hdr
[
1
]
^
p_hdr
[
2
]
^
p_hdr
[
3
];
const
uint8_t
*
p
=
&
p_hdr
[
4
+
(
b_has_sync
?
28
:
0
)];
for
(
int
i
=
0
;
i
<
p_mlp
->
i_substreams
;
i
++
)
for
(
unsigned
i
=
0
;
i
<
p_mlp
->
i_substreams
;
i
++
)
{
i_tmp
^=
*
p
++
;
i_tmp
^=
*
p
++
;
...
...
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