shithub: libvpx

Download patch

ref: 742e93f030ec66d01930de0697c1896a7d5c128e
parent: 47f22fc5fb1a1cad1ed9b4026f866f866fa348c0
parent: cb63aefa4527dbde62abcc4c7f8b5bef40a8cf6b
author: Marco Paniconi <marpan@google.com>
date: Tue Apr 3 22:15:56 EDT 2018

Merge "Fix to svc sample enocoder for visual studio build."

--- a/examples/vp9_spatial_svc_encoder.c
+++ b/examples/vp9_spatial_svc_encoder.c
@@ -804,7 +804,6 @@
             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,7 +831,7 @@
                 }
                 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];
@@ -839,7 +838,7 @@
                   }
                   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);
                 }
               }