mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-17 14:29:48 +02:00
Add GetCanvasSize() method to mux
Change-Id: If910f5024f4c301a92e6c2e8ee9c315a103c5df7
This commit is contained in:
@ -503,6 +503,10 @@ WebPMuxError MuxValidate(const WebPMux* const mux) {
|
||||
// Verify mux has at least one image.
|
||||
if (mux->images_ == NULL) return WEBP_MUX_INVALID_ARGUMENT;
|
||||
|
||||
// Validate that VP8X/VP8/VP8L chunk and canvas size are valid.
|
||||
err = MuxGetCanvasSize(mux, NULL, NULL);
|
||||
if (err != WEBP_MUX_OK) return err;
|
||||
|
||||
err = WebPMuxGetFeatures(mux, &flags);
|
||||
if (err != WEBP_MUX_OK) return err;
|
||||
|
||||
|
Reference in New Issue
Block a user