Index: src/pdf/SkJpegInfo.cpp |
diff --git a/src/pdf/SkJpegInfo.cpp b/src/pdf/SkJpegInfo.cpp |
index 455b4aa2c046e663123bf73f343040d8fa7f77e2..3c52a102db663769b5f6671d170d61231621ee32 100644 |
--- a/src/pdf/SkJpegInfo.cpp |
+++ b/src/pdf/SkJpegInfo.cpp |
@@ -107,8 +107,8 @@ bool SkIsJFIF(const SkData* skdata, SkJFIFInfo* info) { |
return false; // Invalid JFIF |
} |
if (info) { |
- info->fHeight = JpegSegment::GetBigendianUint16(&segment.data()[1]); |
- info->fWidth = JpegSegment::GetBigendianUint16(&segment.data()[3]); |
+ info->fSize.set(JpegSegment::GetBigendianUint16(&segment.data()[3]), |
+ JpegSegment::GetBigendianUint16(&segment.data()[1])); |
if (numberOfComponents == 3) { |
info->fType = SkJFIFInfo::kYCbCr; |
} else { |