bfdc88f0d2
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/dirac?expand=0&rev=b75b927ea64d2c8fdb88e1ef8e0c2d9f
23 lines
903 B
Diff
23 lines
903 B
Diff
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
|
|
|