This commit is contained in:
parent
61a59a3108
commit
cf97cda159
22
dirac-1.0.2-gcc45.patch
Normal file
22
dirac-1.0.2-gcc45.patch
Normal file
@ -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<cblock.Xend(); ++i )
|
||||||
|
{
|
||||||
|
- if ( (std::abs(m_coeff_data[j][i])<<2) >= u_threshold )
|
||||||
|
+ if ( (static_cast<int>(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<node.Xp()+node.Xl(); ++i)
|
||||||
|
{
|
||||||
|
- val = std::max( val , std::abs(m_coeff_data[j][i]) );
|
||||||
|
+ val = std::max( val , static_cast<int>(std::abs(m_coeff_data[j][i])) );
|
||||||
|
}// i
|
||||||
|
}// j
|
||||||
|
|
@ -23,9 +23,10 @@ Version: 1.0.2
|
|||||||
Release: 3
|
Release: 3
|
||||||
Url: http://diracvideo.org/
|
Url: http://diracvideo.org/
|
||||||
Group: Productivity/Multimedia/Video/Editors and Convertors
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
||||||
License: MPL ..
|
License: MPL
|
||||||
Summary: Dirac Video Codec
|
Summary: The dirac Video Codec
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
|
Patch0: %{name}-%{version}-gcc45.patch
|
||||||
BuildRequires: gcc-c++ libstdc++-devel
|
BuildRequires: gcc-c++ libstdc++-devel
|
||||||
BuildRequires: libcppunit-devel
|
BuildRequires: libcppunit-devel
|
||||||
%ifnarch ia64 s390 s390x %sparc
|
%ifnarch ia64 s390 s390x %sparc
|
||||||
@ -209,6 +210,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
# Code is not mature enough for -Werror (unused results)
|
# Code is not mature enough for -Werror (unused results)
|
||||||
sed -i 's/-Werror//' configure.ac
|
sed -i 's/-Werror//' configure.ac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user