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
d50a4c4a
Commit
d50a4c4a
authored
Feb 01, 2012
by
Clément Bœsch
Committed by
Clément Bœsch
Feb 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/amerge: copy ref props after filtering samples.
This fixes various issues with ffmpeg -ss and -t.
parent
85c66793
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
af_amerge.c
libavfilter/af_amerge.c
+7
-0
No files found.
libavfilter/af_amerge.c
View file @
d50a4c4a
...
...
@@ -186,6 +186,7 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
AMergeContext
*
am
=
ctx
->
priv
;
AVFilterLink
*
const
outlink
=
ctx
->
outputs
[
0
];
int
input_number
=
inlink
==
ctx
->
inputs
[
1
];
struct
amerge_queue
*
inq
=
&
am
->
queue
[
input_number
];
int
nb_samples
,
ns
,
i
;
...
...
@@ -214,6 +215,12 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
ins
[
i
]
=
(
*
inbuf
[
i
])
->
data
[
0
]
+
am
->
queue
[
i
].
pos
*
am
->
nb_in_ch
[
i
]
*
am
->
bps
;
}
avfilter_copy_buffer_ref_props
(
outbuf
,
*
inbuf
[
0
]);
outbuf
->
audio
->
nb_samples
=
nb_samples
;
outbuf
->
audio
->
channel_layout
=
outlink
->
channel_layout
;
outbuf
->
audio
->
planar
=
outlink
->
planar
;
while
(
nb_samples
)
{
ns
=
nb_samples
;
for
(
i
=
0
;
i
<
2
;
i
++
)
...
...
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