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
d8232746
Commit
d8232746
authored
Nov 10, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AIFF: avoid division by 0
Close #7739
parent
8fad0cd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/demux/aiff.c
modules/demux/aiff.c
+3
-2
No files found.
modules/demux/aiff.c
View file @
d8232746
...
...
@@ -143,7 +143,8 @@ static int Open( vlc_object_t *p_this )
p_sys
->
fmt
.
audio
.
i_rate
=
GetF80BE
(
&
p_peek
[
16
]
);
msg_Dbg
(
p_demux
,
"COMM: channels=%d samples_frames=%d bits=%d rate=%d"
,
GetWBE
(
&
p_peek
[
8
]
),
GetDWBE
(
&
p_peek
[
10
]
),
GetWBE
(
&
p_peek
[
14
]
),
GetF80BE
(
&
p_peek
[
16
]
)
);
GetWBE
(
&
p_peek
[
8
]
),
GetDWBE
(
&
p_peek
[
10
]
),
GetWBE
(
&
p_peek
[
14
]
),
GetF80BE
(
&
p_peek
[
16
]
)
);
}
else
if
(
!
memcmp
(
p_peek
,
"SSND"
,
4
)
)
{
...
...
@@ -181,7 +182,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_ssnd_fsize
=
p_sys
->
fmt
.
audio
.
i_channels
*
((
p_sys
->
fmt
.
audio
.
i_bitspersample
+
7
)
/
8
);
if
(
p_sys
->
i_ssnd_fsize
<=
0
)
if
(
p_sys
->
i_ssnd_fsize
<=
0
||
p_sys
->
fmt
.
audio
.
i_rate
==
0
)
{
msg_Err
(
p_demux
,
"invalid audio parameters"
);
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