Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
db0e7bd0
Commit
db0e7bd0
authored
Jun 01, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavr: mix: validate internal sample format in ff_audio_mix_init()
parent
66a29797
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
audio_mix.c
libavresample/audio_mix.c
+8
-0
No files found.
libavresample/audio_mix.c
View file @
db0e7bd0
...
...
@@ -305,6 +305,14 @@ int ff_audio_mix_init(AVAudioResampleContext *avr)
{
int
ret
;
if
(
avr
->
internal_sample_fmt
!=
AV_SAMPLE_FMT_S16P
&&
avr
->
internal_sample_fmt
!=
AV_SAMPLE_FMT_FLTP
)
{
av_log
(
avr
,
AV_LOG_ERROR
,
"Unsupported internal format for "
"mixing: %s
\n
"
,
av_get_sample_fmt_name
(
avr
->
internal_sample_fmt
));
return
AVERROR
(
EINVAL
);
}
/* build matrix if the user did not already set one */
if
(
!
avr
->
am
->
matrix
)
{
int
i
,
j
;
...
...
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