shithub: libvpx

Download patch

ref: 54b2071bf402e34ecc4b29da557f9c6181bf9ab2
parent: c42d54c3a3a356b41ae83970db86966f5e4526d8
author: James Zern <jzern@google.com>
date: Sat Jul 23 07:41:52 EDT 2016

vp8/decodeframe: fix signed/unsigned comparison

quiets a visual studio warning

Change-Id: Ic7725616bc2cb837e6f79294d4fcff36b67af834

--- a/vp8/decoder/decodeframe.c
+++ b/vp8/decoder/decodeframe.c
@@ -798,7 +798,8 @@
   if (pbi->decoding_thread_count > num_token_partitions - 1) {
     pbi->decoding_thread_count = num_token_partitions - 1;
   }
-  if (pbi->decoding_thread_count > pbi->common.mb_rows - 1) {
+  if ((int)pbi->decoding_thread_count > pbi->common.mb_rows - 1) {
+    assert(pbi->common.mb_rows > 0);
     pbi->decoding_thread_count = pbi->common.mb_rows - 1;
   }
 #endif