summaryrefslogtreecommitdiff
path: root/drivers/webp/mux/muxedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/webp/mux/muxedit.c')
-rw-r--r--drivers/webp/mux/muxedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/webp/mux/muxedit.c b/drivers/webp/mux/muxedit.c
index b27663f87a..9bbed42b1a 100644
--- a/drivers/webp/mux/muxedit.c
+++ b/drivers/webp/mux/muxedit.c
@@ -558,8 +558,8 @@ static WebPMuxError CreateVP8XChunk(WebPMux* const mux) {
height = mux->canvas_height_;
}
- if (flags == 0) {
- // For Simple Image, VP8X chunk should not be added.
+ if (flags == 0 && mux->unknown_ == NULL) {
+ // For simple file format, VP8X chunk should not be added.
return WEBP_MUX_OK;
}