From cf97cda1591c84a4dc0eb291dbe7c587cbeb71716d2bff1e6dc948824ace26b6 Mon Sep 17 00:00:00 2001 From: Dave Plater Date: Sun, 9 May 2010 08:36:56 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/dirac?expand=0&rev=9 --- dirac-1.0.2-gcc45.patch | 22 ++++++++++++++++++++++ dirac.spec | 6 ++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 dirac-1.0.2-gcc45.patch diff --git a/dirac-1.0.2-gcc45.patch b/dirac-1.0.2-gcc45.patch new file mode 100644 index 0000000..7ae1b85 --- /dev/null +++ b/dirac-1.0.2-gcc45.patch @@ -0,0 +1,22 @@ +Index: dirac-1.0.2/libdirac_encoder/quant_chooser.cpp +=================================================================== +--- dirac-1.0.2.orig/libdirac_encoder/quant_chooser.cpp ++++ dirac-1.0.2/libdirac_encoder/quant_chooser.cpp +@@ -340,7 +340,7 @@ void QuantChooser::SetSkip( CodeBlock& c + { + for (int i=cblock.Xstart(); i= u_threshold ) ++ if ( (static_cast(std::abs(m_coeff_data[j][i]))<<2) >= u_threshold ) + can_skip = false; + } + } +@@ -355,7 +355,7 @@ CoeffType QuantChooser::BlockAbsMax( con + { + for (int i=node.Xp() ; i(std::abs(m_coeff_data[j][i])) ); + }// i + }// j + diff --git a/dirac.spec b/dirac.spec index 750197d..2b6ca20 100644 --- a/dirac.spec +++ b/dirac.spec @@ -23,9 +23,10 @@ Version: 1.0.2 Release: 3 Url: http://diracvideo.org/ Group: Productivity/Multimedia/Video/Editors and Convertors -License: MPL .. -Summary: Dirac Video Codec +License: MPL +Summary: The dirac Video Codec Source: %{name}-%{version}.tar.bz2 +Patch0: %{name}-%{version}-gcc45.patch BuildRequires: gcc-c++ libstdc++-devel BuildRequires: libcppunit-devel %ifnarch ia64 s390 s390x %sparc @@ -209,6 +210,7 @@ Authors: %prep %setup -q +%patch0 -p1 # Code is not mature enough for -Werror (unused results) sed -i 's/-Werror//' configure.ac