summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2019-09-13 15:20:42 -0700
committerJerome Jiang <jianj@google.com>2019-09-16 11:04:32 -0700
commitf9ffc19ecb4e1e4a22cd00895614c441d8c28451 (patch)
tree5f26e06491e881793d8bfb841b62d443798b5f40 /vp9
parent802569640731033bd649c2d3b0f065a0ff674010 (diff)
downloadlibvpx-f9ffc19ecb4e1e4a22cd00895614c441d8c28451.tar
libvpx-f9ffc19ecb4e1e4a22cd00895614c441d8c28451.tar.gz
libvpx-f9ffc19ecb4e1e4a22cd00895614c441d8c28451.tar.bz2
libvpx-f9ffc19ecb4e1e4a22cd00895614c441d8c28451.zip
Fix msan on svc tests.
BUG=b/140939146 Change-Id: Ib3e714f01c58fc0452c7e1adfc8fd3f1d9f8e0a0
Diffstat (limited to 'vp9')
-rw-r--r--vp9/vp9_cx_iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp9/vp9_cx_iface.c b/vp9/vp9_cx_iface.c
index 45e03f2de..1842f2da4 100644
--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -1109,6 +1109,8 @@ static vpx_codec_err_t encoder_encode(vpx_codec_alg_priv_t *ctx,
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 @@ static vpx_codec_err_t encoder_encode(vpx_codec_alg_priv_t *ctx,
&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 &&