summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2015-11-29 19:31:43 +0100
committerStefan Pöschel <github@basicmaster.de>2015-11-29 19:32:25 +0100
commit5fcfec4c1a51be35ebeeca88cc0633ff996ef71d (patch)
tree55d3dad939dbf5193f11882c3b122314ad4b95bb /src
parentf3bcb1dc90666a37abf4478efdcd9d086e535804 (diff)
downloadODR-AudioEnc-5fcfec4c1a51be35ebeeca88cc0633ff996ef71d.tar.gz
ODR-AudioEnc-5fcfec4c1a51be35ebeeca88cc0633ff996ef71d.tar.bz2
ODR-AudioEnc-5fcfec4c1a51be35ebeeca88cc0633ff996ef71d.zip
MOT encoder: display correct image size after adding black border
Diffstat (limited to 'src')
-rw-r--r--src/mot-encoder.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index 0bddd86..9abbd0e 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -929,6 +929,9 @@ size_t resizeImage(MagickWand* m_wand, unsigned char** blob)
MagickBorderImage(m_wand, p_wand, (320-width)/2, (240-height)/2);
DestroyPixelWand(p_wand);
+ height = MagickGetImageHeight(m_wand);
+ width = MagickGetImageWidth(m_wand);
+
MagickSetImageFormat(m_wand, "jpg");
int quality = 100;