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
e17a0396
Commit
e17a0396
authored
May 19, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
af_aresample: use extended_data
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
72a242c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
af_aresample.c
libavfilter/af_aresample.c
+3
-3
No files found.
libavfilter/af_aresample.c
View file @
e17a0396
...
@@ -169,8 +169,8 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamplesref
...
@@ -169,8 +169,8 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamplesref
AVFilterLink
*
const
outlink
=
inlink
->
dst
->
outputs
[
0
];
AVFilterLink
*
const
outlink
=
inlink
->
dst
->
outputs
[
0
];
AVFilterBufferRef
*
outsamplesref
=
ff_get_audio_buffer
(
outlink
,
AV_PERM_WRITE
,
n_out
);
AVFilterBufferRef
*
outsamplesref
=
ff_get_audio_buffer
(
outlink
,
AV_PERM_WRITE
,
n_out
);
n_out
=
swr_convert
(
aresample
->
swr
,
outsamplesref
->
data
,
n_out
,
n_out
=
swr_convert
(
aresample
->
swr
,
outsamplesref
->
extended_
data
,
n_out
,
(
void
*
)
insamplesref
->
data
,
n_in
);
(
void
*
)
insamplesref
->
extended_
data
,
n_in
);
if
(
n_out
<=
0
)
{
if
(
n_out
<=
0
)
{
avfilter_unref_buffer
(
outsamplesref
);
avfilter_unref_buffer
(
outsamplesref
);
avfilter_unref_buffer
(
insamplesref
);
avfilter_unref_buffer
(
insamplesref
);
...
@@ -210,7 +210,7 @@ static int request_frame(AVFilterLink *outlink)
...
@@ -210,7 +210,7 @@ static int request_frame(AVFilterLink *outlink)
outsamplesref
=
ff_get_audio_buffer
(
outlink
,
AV_PERM_WRITE
,
n_out
);
outsamplesref
=
ff_get_audio_buffer
(
outlink
,
AV_PERM_WRITE
,
n_out
);
if
(
!
outsamplesref
)
if
(
!
outsamplesref
)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
n_out
=
swr_convert
(
aresample
->
swr
,
outsamplesref
->
data
,
n_out
,
0
,
0
);
n_out
=
swr_convert
(
aresample
->
swr
,
outsamplesref
->
extended_
data
,
n_out
,
0
,
0
);
if
(
n_out
<=
0
)
{
if
(
n_out
<=
0
)
{
avfilter_unref_buffer
(
outsamplesref
);
avfilter_unref_buffer
(
outsamplesref
);
return
(
n_out
==
0
)
?
AVERROR_EOF
:
n_out
;
return
(
n_out
==
0
)
?
AVERROR_EOF
:
n_out
;
...
...
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