Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathis Rosenhauer
libaec
Commits
e4924f2c
Commit
e4924f2c
authored
Nov 20, 2012
by
Mathis Rosenhauer
Committed by
Thomas Jahns
Feb 19, 2013
Browse files
Only copy options actually set
parent
2e015ff3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sz_compat.c
View file @
e4924f2c
...
...
@@ -18,7 +18,8 @@ static int convert_options(int sz_opts)
co
[
SZ_NN_OPTION_MASK
]
=
AEC_DATA_PREPROCESS
;
for
(
i
=
1
;
i
<
NOPTS
;
i
<<=
1
)
opts
|=
co
[
i
];
if
(
sz_opts
&
i
)
opts
|=
co
[
i
];
return
opts
;
}
...
...
@@ -101,7 +102,7 @@ static size_t remove_padding(void *buf, size_t total,
j
-=
padding_size
;
memcpy
((
char
*
)
buf
+
j
,
(
char
*
)
buf
+
i
,
pixel_size
);
}
if
(
(
i
%
(
line_size
+
padding_size
)
)
==
0
)
if
(
i
%
(
line_size
+
padding_size
)
==
0
)
j
-=
padding_size
;
return
j
;
}
...
...
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