shithub: libvpx

Download patch

ref: 0979dbb37b360d51dd5c64d9b42ba7cb997463ca
parent: 4e00f56cd6f664c14b7f657d722f63e9832434d4
parent: 364b92dc88f67166cac4c0d6d008fbbfc93fddba
author: Yaowu Xu <yaowu@google.com>
date: Tue Jan 6 03:01:47 EST 2015

Merge "Fix compiler warnigns for msvc2013"

--- a/vp9/encoder/vp9_encodemb.c
+++ b/vp9/encoder/vp9_encodemb.c
@@ -93,7 +93,7 @@
   int           rate;
   int           error;
   int           next;
-  signed char   token;
+  int16_t       token;
   short         qc;
 } vp9_token_state;
 
--- a/vp9/encoder/vp9_tokenize.h
+++ b/vp9/encoder/vp9_tokenize.h
@@ -65,7 +65,7 @@
 extern const int16_t vp9_cat6_high_cost[128];
 extern const int16_t vp9_cat6_high10_high_cost[512];
 extern const int16_t vp9_cat6_high12_high_cost[2048];
-static INLINE int16_t vp9_get_cost(uint8_t token, EXTRABIT extrabits,
+static INLINE int16_t vp9_get_cost(int16_t token, EXTRABIT extrabits,
                                    const int16_t *cat6_high_table) {
   if (token != CATEGORY6_TOKEN)
     return vp9_extra_bits[token].cost[extrabits];