mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
probe input file and quick-check for WebP format.
Error message is clearer that 'can't create demux object'. Change-Id: Iec008601892f7cd8399e1948751747ac23305eef
This commit is contained in:
parent
2ccf58d648
commit
830f72b7e9
@ -434,6 +434,11 @@ int main(int argc, char *argv[]) {
|
||||
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);
|
||||
if (kParams.dmux == NULL) {
|
||||
fprintf(stderr, "Could not create demuxing object!\n");
|
||||
|
Loading…
Reference in New Issue
Block a user