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
4b879751
Commit
4b879751
authored
Feb 26, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_compand: pts init code from libavfilter/af_compand_fork.c
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5c78fe08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
af_compand.c
libavfilter/af_compand.c
+5
-0
No files found.
libavfilter/af_compand.c
View file @
4b879751
...
...
@@ -87,6 +87,7 @@ AVFILTER_DEFINE_CLASS(compand);
static
av_cold
int
init
(
AVFilterContext
*
ctx
)
{
CompandContext
*
s
=
ctx
->
priv
;
s
->
pts
=
AV_NOPTS_VALUE
;
if
(
!
s
->
attacks
||
!
s
->
decays
||
!
s
->
points
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Missing attacks and/or decays and/or points.
\n
"
);
...
...
@@ -223,6 +224,10 @@ static int compand_delay(AVFilterContext *ctx, AVFrame *frame)
int
chan
,
i
,
av_uninit
(
dindex
),
oindex
,
av_uninit
(
count
);
AVFrame
*
out_frame
=
NULL
;
if
(
s
->
pts
==
AV_NOPTS_VALUE
)
{
s
->
pts
=
(
frame
->
pts
==
AV_NOPTS_VALUE
)
?
0
:
frame
->
pts
;
}
av_assert1
(
channels
>
0
);
/* would corrupt delay_count and delay_index */
for
(
chan
=
0
;
chan
<
channels
;
chan
++
)
{
...
...
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