diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-20 14:42:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-20 20:03:39 +0200 |
commit | ca7c2f6cd48917fefdbee3585f6ccfd491582c5f (patch) | |
tree | 1d23426f8f5a91b26f2efd16bac989c63b83bf60 /filter | |
parent | bf7f7c7c385c62a1edfa94dab0334bac606a4732 (diff) |
cid#1448337 Unchecked return value from library
Change-Id: Idac1d04e725f3e6e96d0ec6e83fcba3086c7a5fc
Reviewed-on: https://gerrit.libreoffice.org/76007
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/flash/swfwriter1.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/filter/source/flash/swfwriter1.cxx b/filter/source/flash/swfwriter1.cxx index 7967468650c3..5416ab869442 100644 --- a/filter/source/flash/swfwriter1.cxx +++ b/filter/source/flash/swfwriter1.cxx @@ -722,14 +722,10 @@ sal_uInt16 Writer::defineBitmap( const BitmapEx &bmpSource, sal_Int32 nJPEGQuali uLongf compressed_size = raw_size + static_cast<sal_uInt32>(raw_size/100) + 12; std::unique_ptr<sal_uInt8[]> pCompressed(new sal_uInt8[ compressed_size ]); -#ifdef DBG_UTIL if(compress2(pCompressed.get(), &compressed_size, aImageData.data(), raw_size, Z_BEST_COMPRESSION) != Z_OK) { SAL_WARN( "filter.flash", "compress2 failed!" ); ((void)0); } -#else - compress2(pCompressed.get(), &compressed_size, aImageData.data(), 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 separately. |