libreoffice/fix_webp_on_sle12_sp5.patch
Martin Schreiner f606878396 Accepting request 1189287 from home:bmwiedemann:branches:LibreOffice:Factory
Add reproducible-clucene.patch to use new clucene function
  to make index files reproducible (boo#boo#1047218)
- Normalize .jar and .zip mtimes with strip-nondeterminism

OBS-URL: https://build.opensuse.org/request/show/1189287
OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=1179
2024-07-24 21:29:33 +00:00

29 lines
1.1 KiB
Diff

Index: libreoffice-7.4.1.2/vcl/source/filter/webp/writer.cxx
===================================================================
--- libreoffice-7.4.1.2.orig/vcl/source/filter/webp/writer.cxx
+++ libreoffice-7.4.1.2/vcl/source/filter/webp/writer.cxx
@@ -59,19 +59,12 @@ static bool writeWebp(SvStream& rStream,
}
if (lossless)
{
- if (!WebPConfigLosslessPreset(&config, 6))
- {
- SAL_WARN("vcl.filter.webp", "WebPConfigLosslessPreset() failed");
- return false;
- }
+ SAL_WARN("vcl.filter.webp", "WebPConfigLosslessPreset() is not available on SLE-12-SP5");
}
- else
+ if (!WebPConfigPreset(&config, presetToValue(preset), quality))
{
- if (!WebPConfigPreset(&config, presetToValue(preset), quality))
- {
- SAL_WARN("vcl.filter.webp", "WebPConfigPreset() failed");
- return false;
- }
+ SAL_WARN("vcl.filter.webp", "WebPConfigPreset() failed");
+ return false;
}
// Here various parts of 'config' can be altered if wanted.
assert(WebPValidateConfig(&config));