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
a860adb4
Commit
a860adb4
authored
Sep 16, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/checkasm/vp9dsp: Use snprintf() for safetey
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
78af3ffa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
vp9dsp.c
tests/checkasm/vp9dsp.c
+6
-4
No files found.
tests/checkasm/vp9dsp.c
View file @
a860adb4
...
...
@@ -143,11 +143,13 @@ static void check_mc(void)
for
(
dx
=
0
;
dx
<
2
;
dx
++
)
{
for
(
dy
=
0
;
dy
<
2
;
dy
++
)
{
if
(
dx
||
dy
)
{
sprintf
(
str
,
"%s_%s_%d%s"
,
op_names
[
op
],
filter_names
[
filter
],
size
,
subpel_names
[
dy
][
dx
]);
snprintf
(
str
,
sizeof
(
str
),
"%s_%s_%d%s"
,
op_names
[
op
],
filter_names
[
filter
],
size
,
subpel_names
[
dy
][
dx
]);
}
else
{
sprintf
(
str
,
"%s%d"
,
op_names
[
op
],
size
);
snprintf
(
str
,
sizeof
(
str
),
"%s%d"
,
op_names
[
op
],
size
);
}
if
(
check_func
(
dsp
.
mc
[
hsize
][
filter
][
op
][
dx
][
dy
],
"vp9_%s_%dbpp"
,
str
,
bit_depth
))
{
...
...
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