Merge "probe input file and quick-check for WebP format."

This commit is contained in:
James Zern 2013-06-10 12:29:58 -07:00 committed by Gerrit Code Review
commit 90e2ec5a1b

View File

@ -436,6 +436,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");