summaryrefslogtreecommitdiffstats
path: root/image/decoders/nsJPEGDecoder.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-11-21 13:34:01 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-11-21 13:34:01 +0100
commit3417e581ce76662131e8089de19b05af20a7fe19 (patch)
tree82022858bd64d6ca4b1023d0317355b621d8b0aa /image/decoders/nsJPEGDecoder.cpp
parent622098073e132995994fac4d61e3629d08ee1801 (diff)
downloadUXP-3417e581ce76662131e8089de19b05af20a7fe19.tar
UXP-3417e581ce76662131e8089de19b05af20a7fe19.tar.gz
UXP-3417e581ce76662131e8089de19b05af20a7fe19.tar.lz
UXP-3417e581ce76662131e8089de19b05af20a7fe19.tar.xz
UXP-3417e581ce76662131e8089de19b05af20a7fe19.zip
Bug 1462355 - Part 1c. Make individual image decoders to use updated Decoder/SurfacePipe methods.
Extend this change to nsWebPDecoder.cpp
Diffstat (limited to 'image/decoders/nsJPEGDecoder.cpp')
-rw-r--r--image/decoders/nsJPEGDecoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/image/decoders/nsJPEGDecoder.cpp b/image/decoders/nsJPEGDecoder.cpp
index e76ffcbaf..7dac18e27 100644
--- a/image/decoders/nsJPEGDecoder.cpp
+++ b/image/decoders/nsJPEGDecoder.cpp
@@ -388,8 +388,8 @@ nsJPEGDecoder::ReadJPEGData(const char* aData, size_t aLength)
jpeg_has_multiple_scans(&mInfo);
MOZ_ASSERT(!mImageData, "Already have a buffer allocated?");
- nsresult rv = AllocateFrame(/* aFrameNum = */ 0, OutputSize(),
- FullOutputFrame(), SurfaceFormat::B8G8R8X8);
+ nsresult rv = AllocateFrame(OutputSize(), FullOutputFrame(),
+ SurfaceFormat::B8G8R8X8);
if (NS_FAILED(rv)) {
mState = JPEG_ERROR;
MOZ_LOG(sJPEGDecoderAccountingLog, LogLevel::Debug,