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
98be9ffa
Commit
98be9ffa
authored
Apr 05, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wav: cosmetics (alignment, unlikely, locality)
parent
efeb2e71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
modules/demux/wav.c
modules/demux/wav.c
+19
-19
No files found.
modules/demux/wav.c
View file @
98be9ffa
...
...
@@ -119,7 +119,7 @@ static int Open( vlc_object_t * p_this )
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
*
p_sys
)
);
if
(
p_sys
==
NULL
)
if
(
unlikely
(
!
p_sys
)
)
return
VLC_ENOMEM
;
p_sys
->
p_es
=
NULL
;
...
...
@@ -148,7 +148,7 @@ static int Open( vlc_object_t * p_this )
/* load waveformatex */
p_wf_ext
=
malloc
(
i_size
);
if
(
p_wf_ext
==
NULL
)
if
(
unlikely
(
!
p_wf_ext
)
)
goto
error
;
p_wf
=
&
p_wf_ext
->
Format
;
...
...
@@ -181,7 +181,7 @@ static int Open( vlc_object_t * p_this )
(
p_sys
->
fmt
.
i_extra
+
sizeof
(
WAVEFORMATEX
)
>=
sizeof
(
WAVEFORMATEXTENSIBLE
)
)
)
{
unsigned
i
,
i
_channel_mask
;
unsigned
i_channel_mask
;
GUID
guid_subformat
;
guid_subformat
=
p_wf_ext
->
SubFormat
;
...
...
@@ -198,7 +198,7 @@ static int Open( vlc_object_t * p_this )
if
(
i_channel_mask
)
{
int
i_match
=
0
;
for
(
i
=
0
;
i
<
sizeof
(
pi_channels_src
)
/
sizeof
(
*
pi_channels_src
);
i
++
)
for
(
unsigned
i
=
0
;
i
<
sizeof
(
pi_channels_src
)
/
sizeof
(
*
pi_channels_src
);
i
++
)
{
if
(
i_channel_mask
&
pi_channels_src
[
i
]
)
{
...
...
@@ -286,7 +286,7 @@ static int Open( vlc_object_t * p_this )
if
(
p_sys
->
fmt
.
i_extra
>
0
)
{
p_sys
->
fmt
.
p_extra
=
malloc
(
p_sys
->
fmt
.
i_extra
);
if
(
!
p_sys
->
fmt
.
p_extra
)
if
(
unlikely
(
!
p_sys
->
fmt
.
p_extra
)
)
{
p_sys
->
fmt
.
i_extra
=
0
;
goto
error
;
...
...
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