Commit 45ddaab8 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Gerrit Code Review
Browse files

Merge "Set a default mv entropy if no tokens are coded." into experimental

parents e5cc24cc 319dd1c0
...@@ -117,6 +117,8 @@ __inline static void calc_prob(vp8_prob *p, const unsigned int ct[2], int pbits) ...@@ -117,6 +117,8 @@ __inline static void calc_prob(vp8_prob *p, const unsigned int ct[2], int pbits)
if (tot) { if (tot) {
const vp8_prob x = ((ct[0] * 255) / tot) & -(1 << (8 - pbits)); const vp8_prob x = ((ct[0] * 255) / tot) & -(1 << (8 - pbits));
*p = x ? x : 1; *p = x ? x : 1;
} else {
*p = 128;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment