summaryrefslogtreecommitdiff
path: root/vp9/vp9_cx_iface.c
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2014-05-12 09:40:11 -0700
committerYaowu Xu <yaowu@google.com>2014-05-12 09:40:11 -0700
commiteccad3897e24f291ec162920421b899d4738b094 (patch)
tree127faec24e044734604e8000c2d28d01457d8f6e /vp9/vp9_cx_iface.c
parent3305909bc2e2d6d9bfe8c01a3fe2324569c84215 (diff)
downloadlibvpx-eccad3897e24f291ec162920421b899d4738b094.tar
libvpx-eccad3897e24f291ec162920421b899d4738b094.tar.gz
libvpx-eccad3897e24f291ec162920421b899d4738b094.tar.bz2
libvpx-eccad3897e24f291ec162920421b899d4738b094.zip
Fixed comparison of different int types
Change-Id: I499635967faaf4ec1c498e88d09b2d3f2a4badba
Diffstat (limited to 'vp9/vp9_cx_iface.c')
-rw-r--r--vp9/vp9_cx_iface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vp9/vp9_cx_iface.c b/vp9/vp9_cx_iface.c
index 449e7d897..6ef52eda9 100644
--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -42,7 +42,7 @@ struct vp9_extracfg {
};
struct extraconfig_map {
- int usage;
+ unsigned int usage;
struct vp9_extracfg cfg;
};
@@ -245,7 +245,8 @@ static vpx_codec_err_t validate_config(vpx_codec_alg_priv_t *ctx,
layer_id = (int)stats->spatial_layer_id;
if (layer_id >= cfg->ss_number_layers
- ||(int)(stats->count + 0.5) != n_packets_per_layer[layer_id] - 1)
+ ||(unsigned int)(stats->count + 0.5) !=
+ n_packets_per_layer[layer_id] - 1)
ERROR("rc_twopass_stats_in missing EOS stats packet");
}
} else {