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
aa69db3a
Commit
aa69db3a
authored
May 17, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavfilter: src_buffer: fix planar audio
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
664f0aac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src_buffer.c
libavfilter/src_buffer.c
+4
-5
No files found.
libavfilter/src_buffer.c
View file @
aa69db3a
...
...
@@ -279,11 +279,10 @@ static AVFilterBufferRef *copy_buffer_ref(AVFilterContext *ctx,
buf
=
ff_get_audio_buffer
(
outlink
,
AV_PERM_WRITE
,
ref
->
audio
->
nb_samples
);
channels
=
av_get_channel_layout_nb_channels
(
ref
->
audio
->
channel_layout
);
data_size
=
av_samples_get_buffer_size
(
NULL
,
channels
,
ref
->
audio
->
nb_samples
,
ref
->
format
,
1
);
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
ref
->
buf
->
data
)
&&
ref
->
buf
->
data
[
i
];
i
++
)
memcpy
(
buf
->
buf
->
data
[
i
],
ref
->
buf
->
data
[
i
],
data_size
);
av_samples_copy
(
buf
->
extended_data
,
ref
->
buf
->
extended_data
,
0
,
0
,
ref
->
audio
->
nb_samples
,
channels
,
ref
->
format
);
break
;
default:
...
...
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