mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
fix some petty constness
fix the ./configure file too Change-Id: I96cfc84e08e9bab517dec24c92f856efa5ad04ca
This commit is contained in:
@ -33,7 +33,7 @@ static void help(const char *s) {
|
||||
);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
int main(int argc, const char *argv[]) {
|
||||
const char *in_file = NULL;
|
||||
const char *out_file = NULL;
|
||||
int raw_output = 0;
|
||||
@ -85,9 +85,9 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
if (!raw_output) {
|
||||
out = WebPDecodeRGB(data, data_size, &width, &height);
|
||||
out = WebPDecodeRGB((const uint8_t*)data, data_size, &width, &height);
|
||||
} else {
|
||||
out = WebPDecodeYUV(data, data_size, &width, &height,
|
||||
out = WebPDecodeYUV((const uint8_t*)data, data_size, &width, &height,
|
||||
&u, &v, &stride, &uv_stride);
|
||||
}
|
||||
free(data);
|
||||
|
Reference in New Issue
Block a user