Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL11
>
dirac
> dirac-1.0.2-gcc45.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File dirac-1.0.2-gcc45.patch of Package dirac
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