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
5df10150
Commit
5df10150
authored
May 03, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/phase: add some constness for RO data pointers.
parent
69d72140
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vf_phase.c
libavfilter/vf_phase.c
+5
-5
No files found.
libavfilter/vf_phase.c
View file @
5df10150
...
...
@@ -117,12 +117,12 @@ static enum PhaseMode analyze_plane(void *ctx, enum PhaseMode mode, AVFrame *old
double
bdiff
,
tdiff
,
pdiff
,
scale
;
const
int
ns
=
new
->
linesize
[
0
];
const
int
os
=
old
->
linesize
[
0
];
uint8_t
*
nptr
=
new
->
data
[
0
];
uint8_t
*
optr
=
old
->
data
[
0
];
const
uint8_t
*
nptr
=
new
->
data
[
0
];
const
uint8_t
*
optr
=
old
->
data
[
0
];
const
int
h
=
new
->
height
;
const
int
w
=
new
->
width
;
int
bdif
,
tdif
,
pdif
;
uint8_t
*
end
,
*
rend
;
const
uint8_t
*
end
,
*
rend
;
int
top
,
t
;
if
(
mode
==
AUTO
)
{
...
...
@@ -267,8 +267,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
for
(
plane
=
0
;
plane
<
s
->
nb_planes
;
plane
++
)
{
uint8_t
*
buf
=
s
->
frame
->
data
[
plane
];
uint8_t
*
from
=
in
->
data
[
plane
];
const
uint8_t
*
buf
=
s
->
frame
->
data
[
plane
];
const
uint8_t
*
from
=
in
->
data
[
plane
];
uint8_t
*
to
=
out
->
data
[
plane
];
for
(
y
=
0
,
top
=
1
;
y
<
s
->
planeheight
[
plane
];
y
++
,
top
^=
1
)
{
...
...
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