]> granicus.if.org Git - libvpx/commitdiff
Fix a compiler warning
authorYaowu Xu <yaowu@google.com>
Tue, 19 Jan 2016 22:27:23 +0000 (14:27 -0800)
committerYaowu Xu <yaowu@google.com>
Tue, 19 Jan 2016 22:27:23 +0000 (14:27 -0800)
Change-Id: Ib096998906935e58f52393ea9ac082f69ada7023

vpxenc.c

index e5c5820eaa5316945686a3b14b61fb0a638588ea..17da4a9a7e8d18239451991ad4d84ba8eef68999 100644 (file)
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -1767,13 +1767,11 @@ static void test_decode(struct stream_state  *stream,
                         enum TestDecodeFatality fatal,
                         const VpxInterface *codec) {
   vpx_image_t enc_img, dec_img;
+  struct vp9_ref_frame ref_enc, ref_dec;
 
   if (stream->mismatch_seen)
     return;
 
-  /* Get the internal reference frame */
-    struct vp9_ref_frame ref_enc, ref_dec;
-
   ref_enc.idx = 0;
   ref_dec.idx = 0;
   vpx_codec_control(&stream->encoder, VP9_GET_REFERENCE, &ref_enc);