From 3417e581ce76662131e8089de19b05af20a7fe19 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 21 Nov 2018 13:34:01 +0100 Subject: Bug 1462355 - Part 1c. Make individual image decoders to use updated Decoder/SurfacePipe methods. Extend this change to nsWebPDecoder.cpp --- image/decoders/nsBMPDecoder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'image/decoders/nsBMPDecoder.cpp') diff --git a/image/decoders/nsBMPDecoder.cpp b/image/decoders/nsBMPDecoder.cpp index 1f0449e4e..42bb3486a 100644 --- a/image/decoders/nsBMPDecoder.cpp +++ b/image/decoders/nsBMPDecoder.cpp @@ -674,8 +674,7 @@ nsBMPDecoder::ReadBitfields(const char* aData, size_t aLength) } MOZ_ASSERT(!mImageData, "Already have a buffer allocated?"); - nsresult rv = AllocateFrame(/* aFrameNum = */ 0, OutputSize(), - FullOutputFrame(), + nsresult rv = AllocateFrame(OutputSize(), FullOutputFrame(), mMayHaveTransparency ? SurfaceFormat::B8G8R8A8 : SurfaceFormat::B8G8R8X8); if (NS_FAILED(rv)) { -- cgit v1.2.3