diff --git a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp index 5da5d35..9228083 100644 --- a/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp +++ b/Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp @@ -661,6 +661,9 @@ ImageFrame* JPEGImageDecoder::frameBufferAtIndex(size_t index) PlatformInstrumentation::didDecodeImage(); } + if (failed()) + return 0; + frame.notifyBitmapIfPixelsChanged(); return &frame; }