shithub: libvpx

Download patch

ref: f9ffc19ecb4e1e4a22cd00895614c441d8c28451
parent: 802569640731033bd649c2d3b0f065a0ff674010
author: Jerome Jiang <jianj@google.com>
date: Fri Sep 13 11:20:42 EDT 2019

Fix msan on svc tests.

BUG=b/140939146

Change-Id: Ib3e714f01c58fc0452c7e1adfc8fd3f1d9f8e0a0

--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -1109,6 +1109,8 @@
   VP9_COMP *const cpi = ctx->cpi;
   const vpx_rational64_t *const timestamp_ratio = &ctx->timestamp_ratio;
   size_t data_sz;
+  vpx_codec_cx_pkt_t pkt;
+  memset(&pkt, 0, sizeof(pkt));
 
   if (cpi == NULL) return VPX_CODEC_INVALID_PARAM;
 
@@ -1228,8 +1230,6 @@
                                          &dst_time_stamp, &dst_end_time_stamp,
                                          !img)) {
       if (size || (cpi->use_svc && cpi->svc.skip_enhancement_layer)) {
-        vpx_codec_cx_pkt_t pkt;
-
         // Pack invisible frames with the next visible frame
         if (!cpi->common.show_frame ||
             (cpi->use_svc &&