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
b3674533
Commit
b3674533
authored
Dec 26, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libswscale/swscale-test: fix some const correctness
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fceeac98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
swscale-test.c
libswscale/swscale-test.c
+2
-2
No files found.
libswscale/swscale-test.c
View file @
b3674533
...
...
@@ -51,7 +51,7 @@
(x) == AV_PIX_FMT_RGB32_1 || \
(x) == AV_PIX_FMT_YUVA420P)
static
uint64_t
getSSD
(
uint8_t
*
src1
,
uint8_t
*
src2
,
int
stride1
,
static
uint64_t
getSSD
(
const
uint8_t
*
src1
,
const
uint8_t
*
src2
,
int
stride1
,
int
stride2
,
int
w
,
int
h
)
{
int
x
,
y
;
...
...
@@ -346,7 +346,7 @@ int main(int argc, char **argv)
enum
AVPixelFormat
srcFormat
=
AV_PIX_FMT_NONE
;
enum
AVPixelFormat
dstFormat
=
AV_PIX_FMT_NONE
;
uint8_t
*
rgb_data
=
av_malloc
(
W
*
H
*
4
);
uint8_t
*
rgb_src
[
4
]
=
{
rgb_data
,
NULL
,
NULL
,
NULL
};
const
uint8_t
*
const
rgb_src
[
4
]
=
{
rgb_data
,
NULL
,
NULL
,
NULL
};
int
rgb_stride
[
4
]
=
{
4
*
W
,
0
,
0
,
0
};
uint8_t
*
data
=
av_malloc
(
4
*
W
*
H
);
uint8_t
*
src
[
4
]
=
{
data
,
data
+
W
*
H
,
data
+
W
*
H
*
2
,
data
+
W
*
H
*
3
};
...
...
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