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
ad1bc948
Commit
ad1bc948
authored
Oct 06, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MLP packetizer: avoid SIGFPE with samplerate of 0
parent
e898c6ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/packetizer/mlp.c
modules/packetizer/mlp.c
+6
-3
No files found.
modules/packetizer/mlp.c
View file @
ad1bc948
...
...
@@ -293,10 +293,13 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
msg_Info
(
p_dec
,
"MLP channels: %d samplerate: %d"
,
p_sys
->
mlp
.
i_channels
,
p_sys
->
mlp
.
i_rate
);
if
(
p_sys
->
mlp
.
i_rate
>
0
)
{
const
mtime_t
i_end_date
=
date_Get
(
&
p_sys
->
end_date
);
date_Init
(
&
p_sys
->
end_date
,
p_sys
->
mlp
.
i_rate
,
1
);
date_Set
(
&
p_sys
->
end_date
,
i_end_date
);
}
}
p_dec
->
fmt_out
.
audio
.
i_rate
=
p_sys
->
mlp
.
i_rate
;
p_dec
->
fmt_out
.
audio
.
i_channels
=
p_sys
->
mlp
.
i_channels
;
...
...
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