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
d5d5e3da
Commit
d5d5e3da
authored
Jul 26, 2012
by
William Yu
Committed by
Nicolas George
Jul 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/af_amerge: avfilter_copy_buffer_ref_props will overwrite output pts
parent
97c0d535
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
af_amerge.c
libavfilter/af_amerge.c
+1
-1
No files found.
libavfilter/af_amerge.c
View file @
d5d5e3da
...
...
@@ -241,13 +241,13 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
ins
[
i
]
=
inbuf
[
i
]
->
data
[
0
]
+
am
->
in
[
i
].
pos
*
am
->
in
[
i
].
nb_ch
*
am
->
bps
;
}
avfilter_copy_buffer_ref_props
(
outbuf
,
inbuf
[
0
]);
outbuf
->
pts
=
inbuf
[
0
]
->
pts
==
AV_NOPTS_VALUE
?
AV_NOPTS_VALUE
:
inbuf
[
0
]
->
pts
+
av_rescale_q
(
am
->
in
[
0
].
pos
,
(
AVRational
){
1
,
ctx
->
inputs
[
0
]
->
sample_rate
},
ctx
->
outputs
[
0
]
->
time_base
);
avfilter_copy_buffer_ref_props
(
outbuf
,
inbuf
[
0
]);
outbuf
->
audio
->
nb_samples
=
nb_samples
;
outbuf
->
audio
->
channel_layout
=
outlink
->
channel_layout
;
...
...
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