mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-17 06:19:54 +02:00
mux: add version checked entry points
Change-Id: I3bf5b25b17c06ec092f8ad1c14eea411aa9471c1
This commit is contained in:
@ -26,8 +26,9 @@ static void MuxInit(WebPMux* const mux) {
|
||||
mux->state_ = WEBP_MUX_STATE_PARTIAL;
|
||||
}
|
||||
|
||||
WebPMux* WebPMuxNew(void) {
|
||||
WebPMux* const mux = (WebPMux*)malloc(sizeof(WebPMux));
|
||||
WebPMux* WebPNewInternal(int version) {
|
||||
WebPMux* const mux = (version == WEBP_MUX_ABI_VERSION) ?
|
||||
(WebPMux*)malloc(sizeof(WebPMux)) : NULL;
|
||||
if (mux) MuxInit(mux);
|
||||
return mux;
|
||||
}
|
||||
|
Reference in New Issue
Block a user