change to prevent computatio of log(0.0)
Change-Id: I5759f309f94a2b5c1297e6db3735c52986d3ecb2
This commit is contained in:
@@ -909,7 +909,10 @@ extern const int vp8_bits_per_mb[2][QINDEX_RANGE];
|
||||
|
||||
static double bitcost( double prob )
|
||||
{
|
||||
return -(log( prob ) / log( 2.0 ));
|
||||
if (prob > 0.000122)
|
||||
return -log(prob) / log(2.0);
|
||||
else
|
||||
return 13.0;
|
||||
}
|
||||
static int64_t estimate_modemvcost(VP8_COMP *cpi,
|
||||
FIRSTPASS_STATS * fpstats)
|
||||
|
Reference in New Issue
Block a user