mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-14 21:09:55 +02:00
restore mux API compatibility
protect WebPMuxSetCanvasSize w/a WEBP_MUX_ABI_VERSION check Change-Id: I6b01af55ebb4cc4c860d3cbf43be722077896748
This commit is contained in:
@ -362,6 +362,7 @@ WebPMuxError WebPMuxSetAnimationParams(WebPMux* mux,
|
||||
return MuxSet(mux, kChunks[IDX_ANIM].tag, 1, &anim, 1);
|
||||
}
|
||||
|
||||
#if WEBP_MUX_ABI_VERSION > 0x0101
|
||||
WebPMuxError WebPMuxSetCanvasSize(WebPMux* mux,
|
||||
int width, int height) {
|
||||
WebPMuxError err;
|
||||
@ -387,6 +388,7 @@ WebPMuxError WebPMuxSetCanvasSize(WebPMux* mux,
|
||||
mux->canvas_height_ = height;
|
||||
return WEBP_MUX_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Delete API(s).
|
||||
|
Reference in New Issue
Block a user