summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco <marpan@google.com>2017-07-20 13:43:55 -0700
committerMarco <marpan@google.com>2017-07-20 14:19:43 -0700
commit8c7a60e04d3b7e9f5189685cfa9701445aeac3fc (patch)
tree9939fe92cb9e538cde7e455b12482a9e6e9f472e
parente8bd534c42b17e56c8e71dfeaf5cc00dc7f1cf08 (diff)
downloadlibvpx-8c7a60e04d3b7e9f5189685cfa9701445aeac3fc.tar
libvpx-8c7a60e04d3b7e9f5189685cfa9701445aeac3fc.tar.gz
libvpx-8c7a60e04d3b7e9f5189685cfa9701445aeac3fc.tar.bz2
libvpx-8c7a60e04d3b7e9f5189685cfa9701445aeac3fc.zip
vp8: Fix compile warning in vp8_multi_resolution_encoder.c
Change-Id: I49c960179dfc1902aa5e5c99915789878c06bc3d
-rw-r--r--examples/vp8_multi_resolution_encoder.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/vp8_multi_resolution_encoder.c b/examples/vp8_multi_resolution_encoder.c
index 0b9663c77..4d79af6e0 100644
--- a/examples/vp8_multi_resolution_encoder.c
+++ b/examples/vp8_multi_resolution_encoder.c
@@ -469,7 +469,7 @@ int main(int argc, char **argv) {
if (!vpx_img_alloc(&raw[i], VPX_IMG_FMT_I420, cfg[i].g_w, cfg[i].g_h, 32))
die("Failed to allocate image", cfg[i].g_w, cfg[i].g_h);
- if (raw[0].stride[VPX_PLANE_Y] == raw[0].d_w)
+ if (raw[0].stride[VPX_PLANE_Y] == (int)raw[0].d_w)
read_frame_p = read_frame;
else
read_frame_p = read_frame_by_row;
@@ -558,7 +558,8 @@ int main(int argc, char **argv) {
/* Write out down-sampled input. */
length_frame = cfg[i].g_w * cfg[i].g_h * 3 / 2;
if (fwrite(raw[i].planes[0], 1, length_frame,
- downsampled_input[NUM_ENCODERS - i - 1]) != length_frame) {
+ downsampled_input[NUM_ENCODERS - i - 1]) !=
+ (unsigned int)length_frame) {
return EXIT_FAILURE;
}
}