ref: f836d8ba87dcba437228580fe65afe151ccf7659
parent: 8dc05779ebbdab8c50bbb21c8cdf3751df172f54
author: Marco Paniconi <marpan@google.com>
date: Thu Apr 25 05:01:52 EDT 2019
vp9-rtc: Fix int conversion error in nonrd_pickmode. Change-Id: I1be775d8c11f530ff26121f1ffaf1dae100b2510
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -352,7 +352,7 @@
unsigned int source_variance, int is_intra) {
// TODO(marpan): Tune selection for intra-modes, screen content, etc.
TX_SIZE tx_size;
- unsigned int var_thresh = (is_intra) ? ac_thr : 1;
+ unsigned int var_thresh = is_intra ? (unsigned int)ac_thr : 1;
int limit_tx = 1;
if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ &&
(source_variance == 0 || var < var_thresh))