mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 14:34:33 +02:00
Mux: only allow adding frame/tiles at the end.
Change-Id: I5d685628da8c8ac85144cee2e5808b30ec79fef9
This commit is contained in:
@ -797,7 +797,7 @@ static int Process(const WebPMuxConfig* config) {
|
||||
WebPDataClear(&webpdata);
|
||||
ERROR_GOTO1("ERROR: Could not parse frame properties.\n", Err2);
|
||||
}
|
||||
err = WebPMuxSetFrame(mux, 0, &webpdata, x_offset, y_offset,
|
||||
err = WebPMuxPushFrame(mux, &webpdata, x_offset, y_offset,
|
||||
duration, 1);
|
||||
WebPDataClear(&webpdata);
|
||||
if (err != WEBP_MUX_OK) {
|
||||
@ -825,7 +825,7 @@ static int Process(const WebPMuxConfig* config) {
|
||||
WebPDataClear(&webpdata);
|
||||
ERROR_GOTO1("ERROR: Could not parse tile properties.\n", Err2);
|
||||
}
|
||||
err = WebPMuxSetTile(mux, 0, &webpdata, x_offset, y_offset, 1);
|
||||
err = WebPMuxPushTile(mux, &webpdata, x_offset, y_offset, 1);
|
||||
WebPDataClear(&webpdata);
|
||||
if (err != WEBP_MUX_OK) {
|
||||
ERROR_GOTO3("ERROR#%d: Could not add a tile at index %d.\n",
|
||||
|
Reference in New Issue
Block a user