summaryrefslogtreecommitdiff
path: root/examples/vp9_spatial_svc_encoder.c
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2018-03-13 18:22:40 -0700
committerJohann <johannkoenig@google.com>2018-03-13 18:22:50 -0700
commitf0a39790630dc842d86ea1b49e948859757371ad (patch)
tree70870e6913ace955becd45f4349630963b71eea7 /examples/vp9_spatial_svc_encoder.c
parentb0d57f682dfa9a6db2e458daab1722ebf5bcec02 (diff)
downloadlibvpx-f0a39790630dc842d86ea1b49e948859757371ad.tar
libvpx-f0a39790630dc842d86ea1b49e948859757371ad.tar.gz
libvpx-f0a39790630dc842d86ea1b49e948859757371ad.tar.bz2
libvpx-f0a39790630dc842d86ea1b49e948859757371ad.zip
spatial svc: zero sizes
This should be taken care of by parse_superframe_index but the static analysis is not recognizing it because it depends on 'marker' which is read from the bitstream. Clears a static analysis warning: The right operand of '*' is a garbage value rc.layer_encoding_bitrate[layer] += 8.0 * sizes[sl]; Change-Id: I8ee48a98f907bc7b46869fd27a351f33e2e7de71
Diffstat (limited to 'examples/vp9_spatial_svc_encoder.c')
-rw-r--r--examples/vp9_spatial_svc_encoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/vp9_spatial_svc_encoder.c b/examples/vp9_spatial_svc_encoder.c
index ba25b71ad..745feddb8 100644
--- a/examples/vp9_spatial_svc_encoder.c
+++ b/examples/vp9_spatial_svc_encoder.c
@@ -784,6 +784,7 @@ int main(int argc, const char **argv) {
#if OUTPUT_RC_STATS
uint64_t sizes[8];
int count = 0;
+ vp9_zero(sizes);
#endif
vpx_video_writer_write_frame(writer, cx_pkt->data.frame.buf,
cx_pkt->data.frame.sz,