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
88f8b624
Commit
88f8b624
authored
Jun 07, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport [20434]
parent
903827ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
modules/demux/wav.c
modules/demux/wav.c
+10
-2
No files found.
modules/demux/wav.c
View file @
88f8b624
...
...
@@ -106,8 +106,8 @@ static int Open( vlc_object_t * p_this )
unsigned
int
i_size
,
i_extended
;
char
*
psz_name
;
WAVEFORMATEXTENSIBLE
*
p_wf_ext
;
WAVEFORMATEX
*
p_wf
;
WAVEFORMATEXTENSIBLE
*
p_wf_ext
=
NULL
;
WAVEFORMATEX
*
p_wf
=
NULL
;
/* Is it a wav file ? */
if
(
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
12
)
<
12
)
return
VLC_EGENERIC
;
...
...
@@ -120,6 +120,9 @@ 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
(
demux_sys_t
)
);
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
p_sys
->
p_es
=
NULL
;
p_sys
->
b_chan_reorder
=
0
;
p_sys
->
i_channel_mask
=
0
;
...
...
@@ -142,6 +145,9 @@ static int Open( vlc_object_t * p_this )
/* load waveformatex */
p_wf_ext
=
malloc
(
__EVEN
(
i_size
)
+
2
);
if
(
p_wf_ext
==
NULL
)
goto
error
;
p_wf
=
(
WAVEFORMATEX
*
)
p_wf_ext
;
p_wf
->
cbSize
=
0
;
if
(
stream_Read
(
p_demux
->
s
,
...
...
@@ -224,6 +230,7 @@ static int Open( vlc_object_t * p_this )
p_sys
->
fmt
.
audio
.
i_bitspersample
,
p_sys
->
fmt
.
i_extra
);
free
(
p_wf
);
p_wf
=
NULL
;
switch
(
p_sys
->
fmt
.
i_codec
)
{
...
...
@@ -284,6 +291,7 @@ static int Open( vlc_object_t * p_this )
return
VLC_SUCCESS
;
error:
free
(
p_wf
);
relay:
free
(
p_sys
);
return
VLC_EGENERIC
;
...
...
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