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
a11cc336
Commit
a11cc336
authored
Jun 28, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed segfault on corrupted wav file.
parent
26d305ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/demux/wav.c
modules/demux/wav.c
+2
-1
No files found.
modules/demux/wav.c
View file @
a11cc336
...
...
@@ -171,7 +171,8 @@ static int Open( vlc_object_t * p_this )
p_sys
->
fmt
.
audio
.
i_blockalign
=
GetWLE
(
&
p_wf
->
nBlockAlign
);
p_sys
->
fmt
.
i_bitrate
=
GetDWLE
(
&
p_wf
->
nAvgBytesPerSec
)
*
8
;
p_sys
->
fmt
.
audio
.
i_bitspersample
=
GetWLE
(
&
p_wf
->
wBitsPerSample
);
p_sys
->
fmt
.
i_extra
=
GetWLE
(
&
p_wf
->
cbSize
);
if
(
i_size
>=
sizeof
(
WAVEFORMATEX
)
)
p_sys
->
fmt
.
i_extra
=
__MIN
(
GetWLE
(
&
p_wf
->
cbSize
),
i_size
-
sizeof
(
WAVEFORMATEX
)
);
i_extended
=
0
;
/* Handle new WAVE_FORMAT_EXTENSIBLE wav files */
...
...
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