From: Johann Date: Wed, 14 Mar 2018 01:22:40 +0000 (-0700) Subject: spatial svc: zero sizes X-Git-Tag: v1.8.0~806 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0a39790630dc842d86ea1b49e948859757371ad;p=libvpx 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 --- 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,