mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
Merge "mux: ensure # images = # tiles"
This commit is contained in:
commit
a87fc3f609
@ -541,6 +541,11 @@ WebPMuxError WebPMuxValidate(const WebPMux* const mux) {
|
|||||||
return WEBP_MUX_INVALID_ARGUMENT;
|
return WEBP_MUX_INVALID_ARGUMENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// num_tiles & num_images are consistent.
|
||||||
|
if (num_tiles > 0 && num_images != num_tiles) {
|
||||||
|
return WEBP_MUX_INVALID_ARGUMENT;
|
||||||
|
}
|
||||||
|
|
||||||
return WEBP_MUX_OK;
|
return WEBP_MUX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user