]> granicus.if.org Git - libvpx/commitdiff
Make new_qc signed
authorJohann <johannkoenig@google.com>
Mon, 13 Jun 2016 18:56:42 +0000 (11:56 -0700)
committerJohann Koenig <johannkoenig@google.com>
Tue, 14 Jun 2016 22:54:58 +0000 (22:54 +0000)
Mode is signed

Cleans warning in Android build:
comparison of integers of different signs: 'int' and 'unsigned int'
if (ctx->oxcf.Mode != new_qc)
    ~~~~~~~~~~~~~~ ^  ~~~~~~

Change-Id: I5cf81c40b103e688a31e1339511f5c9eb27edd38

vp8/vp8_cx_iface.c

index 257d2a0c4e501c07aa4a3bf111466586dcbf3fff..54d45479e609324c119b287c291baf266cee480c 100644 (file)
@@ -760,7 +760,7 @@ static void pick_quickcompress_mode(vpx_codec_alg_priv_t  *ctx,
                                     unsigned long          duration,
                                     unsigned long          deadline)
 {
-    unsigned int new_qc;
+    int new_qc;
 
 #if !(CONFIG_REALTIME_ONLY)
     /* Use best quality mode if no deadline is given. */