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
f5bc59c5
Commit
f5bc59c5
authored
Apr 17, 2012
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4audio: Fix a crash with some invalid streams.
If rate stays at 0, a FPE will be raised in SetupOutput.
parent
09c2cc89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
modules/packetizer/mpeg4audio.c
modules/packetizer/mpeg4audio.c
+13
-10
No files found.
modules/packetizer/mpeg4audio.c
View file @
f5bc59c5
...
...
@@ -807,6 +807,9 @@ static int LOASParse( decoder_t *p_dec, uint8_t *p_buffer, int i_buffer )
p_sys
->
i_rate
=
st
->
cfg
.
i_samplerate
;
p_sys
->
i_frame_length
=
st
->
cfg
.
i_frame_length
;
if
(
p_sys
->
i_channels
>
0
&&
p_sys
->
i_rate
>
0
&&
p_sys
->
i_frame_length
>
0
)
{
/* FIXME And if it changes ? */
if
(
!
p_dec
->
fmt_out
.
i_extra
&&
st
->
i_extra
>
0
)
{
...
...
@@ -819,10 +822,10 @@ static int LOASParse( decoder_t *p_dec, uint8_t *p_buffer, int i_buffer )
}
memcpy
(
p_dec
->
fmt_out
.
p_extra
,
st
->
extra
,
st
->
i_extra
);
}
p_sys
->
b_latm_cfg
=
true
;
}
}
}
/* Wait for the configuration */
if
(
!
p_sys
->
b_latm_cfg
)
return
0
;
...
...
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