From 26922b93596124ed271e55ae9f756dec3f5fa246 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Sun, 10 Apr 2011 14:27:10 -0700 Subject: [PATCH] Fix output height in plJPEG writer --- .../Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp index 732a6aab..6cd4fcbf 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plJPEG/plJPEG.cpp @@ -419,7 +419,7 @@ hsBool plJPEG::IWrite( plMipmap *source, hsStream *outStream ) jcProps.jquality = fWriteQuality; #else cinfo.jpeg_width = source->GetWidth(); // default - cinfo.jpeg_width = source->GetHeight(); // default + cinfo.jpeg_height = source->GetHeight(); // default cinfo.jpeg_color_space = JCS_YCbCr; // default // not sure how to set 4:1:1 but supposedly it's the default jpeg_set_quality( &cinfo, fWriteQuality, TRUE );