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
703ae350
Commit
703ae350
authored
Aug 18, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_astats: fix flt(p) support
parent
81f7d076
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
af_astats.c
libavfilter/af_astats.c
+2
-2
No files found.
libavfilter/af_astats.c
View file @
703ae350
...
@@ -341,7 +341,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
...
@@ -341,7 +341,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
const
float
*
src
=
(
const
float
*
)
buf
->
extended_data
[
c
];
const
float
*
src
=
(
const
float
*
)
buf
->
extended_data
[
c
];
for
(
i
=
0
;
i
<
buf
->
nb_samples
;
i
++
,
src
++
)
for
(
i
=
0
;
i
<
buf
->
nb_samples
;
i
++
,
src
++
)
update_stat
(
s
,
p
,
*
src
,
*
src
,
llrint
(
*
src
*
(
UINT64_C
(
1
)
<<
63
)));
update_stat
(
s
,
p
,
*
src
,
*
src
,
llrint
(
*
src
*
(
UINT64_C
(
1
)
<<
31
)));
}
}
break
;
break
;
case
AV_SAMPLE_FMT_FLT
:
{
case
AV_SAMPLE_FMT_FLT
:
{
...
@@ -349,7 +349,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
...
@@ -349,7 +349,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
for
(
i
=
0
;
i
<
buf
->
nb_samples
;
i
++
)
{
for
(
i
=
0
;
i
<
buf
->
nb_samples
;
i
++
)
{
for
(
c
=
0
;
c
<
channels
;
c
++
,
src
++
)
for
(
c
=
0
;
c
<
channels
;
c
++
,
src
++
)
update_stat
(
s
,
&
s
->
chstats
[
c
],
*
src
,
*
src
/
(
double
)
INT16_MAX
,
llrint
(
*
src
*
(
UINT64_C
(
1
)
<<
63
)));
update_stat
(
s
,
&
s
->
chstats
[
c
],
*
src
,
*
src
,
llrint
(
*
src
*
(
UINT64_C
(
1
)
<<
31
)));
}}
}}
break
;
break
;
case
AV_SAMPLE_FMT_S64P
:
case
AV_SAMPLE_FMT_S64P
:
...
...
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