shithub: libvpx

Download patch

ref: f0a39790630dc842d86ea1b49e948859757371ad
parent: b0d57f682dfa9a6db2e458daab1722ebf5bcec02
author: Johann <johannkoenig@google.com>
date: Tue Mar 13 14:22:40 EDT 2018

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

--- a/examples/vp9_spatial_svc_encoder.c
+++ b/examples/vp9_spatial_svc_encoder.c
@@ -784,6 +784,7 @@
 #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,