shithub: libvpx

Download patch

ref: 319dd1c0f58d3db46713460ca10e920f2b18b605
parent: 0393e558a4710b31836ead8f9832f6b270daf57c
author: Ronald S. Bultje <rbultje@google.com>
date: Thu Aug 16 07:09:31 EDT 2012

Set a default mv entropy if no tokens are coded.

This doesn't affect the result, since there are no MVs coded using this
entropy. It does, however, silence valgrind warnings about uninitialized
variables.

Change-Id: I6e21ba92df6ce5381bf58b8c349ef4373294a0b6

--- a/vp8/common/entropymv.c
+++ b/vp8/common/entropymv.c
@@ -117,6 +117,8 @@
   if (tot) {
     const vp8_prob x = ((ct[0] * 255) / tot) & -(1 << (8 - pbits));
     *p = x ? x : 1;
+  } else {
+    *p = 128;
   }
 }
 
--