summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2018-04-03 14:34:07 -0700
committerMarco Paniconi <marpan@google.com>2018-04-03 15:09:09 -0700
commitcb63aefa4527dbde62abcc4c7f8b5bef40a8cf6b (patch)
tree57c3ced42073c5ec9abcf8bb0cba8ddc4f2c3ac7
parentee37046f1b07a4df47a6943b4750b1ad6115db0e (diff)
downloadlibvpx-cb63aefa4527dbde62abcc4c7f8b5bef40a8cf6b.tar
libvpx-cb63aefa4527dbde62abcc4c7f8b5bef40a8cf6b.tar.gz
libvpx-cb63aefa4527dbde62abcc4c7f8b5bef40a8cf6b.tar.bz2
libvpx-cb63aefa4527dbde62abcc4c7f8b5bef40a8cf6b.zip
Fix to svc sample enocoder for visual studio build.
Fix to sample encoder, for visual studio buid failure: conversion from 'uint64_t' to 'int'. Change-Id: I385ab8482e1ee97da9872437f8286d9071e38e0e
-rw-r--r--examples/vp9_spatial_svc_encoder.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/vp9_spatial_svc_encoder.c b/examples/vp9_spatial_svc_encoder.c
index 33347c4b2..4b3f8530c 100644
--- a/examples/vp9_spatial_svc_encoder.c
+++ b/examples/vp9_spatial_svc_encoder.c
@@ -804,7 +804,6 @@ int main(int argc, const char **argv) {
uint64_t sizes[8];
uint64_t sizes_parsed[8];
int count = 0;
- int tot_size = 0;
vp9_zero(sizes);
vp9_zero(sizes_parsed);
#endif
@@ -832,14 +831,14 @@ int main(int argc, const char **argv) {
}
for (sl = 0; sl < enc_cfg.ss_number_layers; ++sl) {
unsigned int sl2;
- tot_size = 0;
+ uint64_t tot_size = 0;
for (sl2 = 0; sl2 <= sl; ++sl2) {
if (cx_pkt->data.frame.spatial_layer_encoded[sl2])
tot_size += sizes[sl2];
}
if (tot_size > 0)
vpx_video_writer_write_frame(
- outfile[sl], cx_pkt->data.frame.buf, tot_size,
+ outfile[sl], cx_pkt->data.frame.buf, (size_t)(tot_size),
cx_pkt->data.frame.pts);
}
}