]> granicus.if.org Git - libvpx/commitdiff
vp9_cx_iface,encoder_encode: fix -Wclobbered for pts
authorJames Zern <jzern@google.com>
Sun, 30 Jun 2019 01:18:15 +0000 (18:18 -0700)
committerJames Zern <jzern@google.com>
Mon, 1 Jul 2019 22:18:49 +0000 (15:18 -0700)
Change-Id: Ia7fd4fedb0dcbb626d0e7f4951360e2462b518e2
(cherry picked from commit ae3c6e9ec7dbaad8ee507b1c531c54bdc0141e9f)

vp9/vp9_cx_iface.c

index a63574e64238c76a7804a733d351f6566806f7c6..45e03f2def378e4afcda24cfd75c5c0d66dd1a2a 100644 (file)
@@ -1099,12 +1099,13 @@ static vpx_codec_frame_flags_t get_frame_pkt_flags(const VP9_COMP *cpi,
 const size_t kMinCompressedSize = 8192;
 static vpx_codec_err_t encoder_encode(vpx_codec_alg_priv_t *ctx,
                                       const vpx_image_t *img,
-                                      vpx_codec_pts_t pts,
+                                      vpx_codec_pts_t pts_val,
                                       unsigned long duration,
                                       vpx_enc_frame_flags_t enc_flags,
                                       unsigned long deadline) {
   volatile vpx_codec_err_t res = VPX_CODEC_OK;
   volatile vpx_enc_frame_flags_t flags = enc_flags;
+  volatile vpx_codec_pts_t pts = pts_val;
   VP9_COMP *const cpi = ctx->cpi;
   const vpx_rational64_t *const timestamp_ratio = &ctx->timestamp_ratio;
   size_t data_sz;