Bläddra i källkod

LibGfx/WebP: Use context.error() in animation frame decoding function

That also sets the error state on the context.
Nico Weber 2 år sedan
förälder
incheckning
36c8c1129b
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp

+ 1 - 1
Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp

@@ -1562,7 +1562,7 @@ static ErrorOr<ImageData> decode_webp_animation_frame_image_data(WebPLoadingCont
     }
 
     if (chunk.type != FourCC("VP8 ") && chunk.type != FourCC("VP8L"))
-        return Error::from_string_literal("WebPImageDecoderPlugin: no image data found in animation frame");
+        return context.error("WebPImageDecoderPlugin: no image data found in animation frame");
 
     image_data.image_data_chunk = chunk;