summaryrefslogtreecommitdiff
path: root/filter/source/flash/swfwriter1.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-04-04 14:29:13 +0000
committerKurt Zenker <kz@openoffice.org>2008-04-04 14:29:13 +0000
commit3af3ad5cd3ff9f09cfe22ee421389660f8e66f10 (patch)
tree929706bd7a4f0bf842cdc9f76934ae338a690d8b /filter/source/flash/swfwriter1.cxx
parent573de75322fd1bd1fa50bcbd5fcf5682b7cf3d5b (diff)
INTEGRATION: CWS pdfimport (1.26.44); FILE MERGED
2008/01/23 15:16:31 akhva 1.26.44.1: #80825# merge from picom
Diffstat (limited to 'filter/source/flash/swfwriter1.cxx')
-rw-r--r--filter/source/flash/swfwriter1.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/filter/source/flash/swfwriter1.cxx b/filter/source/flash/swfwriter1.cxx
index 7da8f3eefb30..5b7211442a71 100644
--- a/filter/source/flash/swfwriter1.cxx
+++ b/filter/source/flash/swfwriter1.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: swfwriter1.cxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: hr $ $Date: 2007-11-01 15:19:02 $
+ * last change: $Author: kz $ $Date: 2008-04-04 15:29:13 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -887,14 +887,16 @@ sal_uInt16 Writer::defineBitmap( const BitmapEx &bmpSource, sal_Int32 nJPEGQuali
#ifdef DBG_UTIL
if(compress2(pCompressed, &compressed_size, pImageData, raw_size, Z_BEST_COMPRESSION) != Z_OK)
- DBG_ASSERT( false, "compress2 failed!" );
+ {
+ DBG_ASSERT( false, "compress2 failed!" ); ((void)0);
+ }
#else
compress2(pCompressed, &compressed_size, pImageData, raw_size, Z_BEST_COMPRESSION);
#endif
// AS: SWF files let you provide an Alpha mask for JPEG images, but we have
// to ZLIB compress the alpha channel seperately.
- uLongf alpha_compressed_size = 0;
+ uLong alpha_compressed_size = 0;
sal_uInt8 *pAlphaCompressed = NULL;
if (bmpSource.IsAlpha() || bmpSource.IsTransparent())
{
@@ -903,7 +905,9 @@ sal_uInt16 Writer::defineBitmap( const BitmapEx &bmpSource, sal_Int32 nJPEGQuali
#ifdef DBG_UTIL
if(compress2(pAlphaCompressed, &alpha_compressed_size, pAlphaData, width * height, Z_BEST_COMPRESSION) != Z_OK)
- DBG_ASSERT( false, "compress2 failed!" );
+ {
+ DBG_ASSERT( false, "compress2 failed!" ); ((void)0);
+ }
#else
compress2(pAlphaCompressed, &alpha_compressed_size, pAlphaData, width * height, Z_BEST_COMPRESSION);
#endif
@@ -1094,7 +1098,9 @@ void Writer::Impl_writeJPEG(sal_uInt16 nBitmapId, const sal_uInt8* pJpgData, sal
#ifdef DBG_UTIL
if (0xFF != *pJpgSearch)
- DBG_ERROR( "Expected JPEG marker." );
+ {
+ DBG_ERROR( "Expected JPEG marker." ); ((void)0);
+ }
#endif
cType = *(pJpgSearch + 1);