mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
Merge "probe input file and quick-check for WebP format."
This commit is contained in:
commit
90e2ec5a1b
@ -436,6 +436,11 @@ int main(int argc, char *argv[]) {
|
|||||||
goto Error;
|
goto Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!WebPGetInfo(kParams.data.bytes, kParams.data.size, NULL, NULL)) {
|
||||||
|
fprintf(stderr, "Input file doesn't appear to be WebP format.\n");
|
||||||
|
goto Error;
|
||||||
|
}
|
||||||
|
|
||||||
kParams.dmux = WebPDemux(&kParams.data);
|
kParams.dmux = WebPDemux(&kParams.data);
|
||||||
if (kParams.dmux == NULL) {
|
if (kParams.dmux == NULL) {
|
||||||
fprintf(stderr, "Could not create demuxing object!\n");
|
fprintf(stderr, "Could not create demuxing object!\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user