Skip to content

Instantly share code, notes, and snippets.

View jrmuizel's full-sized avatar

Jeff Muizelaar jrmuizel

View GitHub Profile
@jrmuizel
jrmuizel / 2017PopularCrates.md
Created April 21, 2017 20:08
2017 Popular crates
@jrmuizel
jrmuizel / PopularCrates.md
Created April 21, 2017 19:59
Popular crates
diff --git a/image/decoders/nsJPEGDecoder.cpp b/image/decoders/nsJPEGDecoder.cpp
index 30590f0..6bccb1a 100644
--- a/image/decoders/nsJPEGDecoder.cpp
+++ b/image/decoders/nsJPEGDecoder.cpp
@@ -422,6 +422,8 @@ nsJPEGDecoder::WriteInternal(const char *aBuffer, PRUint32 aCount)
*/
mInfo.dct_method = JDCT_ISLOW;
mInfo.dither_mode = JDITHER_FS;
+ mInfo.scale_denom = 4;
+ mInfo.scale_num = 1;