aom: inspect.c: fix -Wdangling-pointer warning

From e357367005ffa0bfba4a33d689e3b6ce34995f1c Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Tue, 18 Jun 2024 16:49:19 -0700
Subject: [PATCH] inspect.c: fix -Wdangling-pointer warning
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Untested.

examples/inspect.c|822 col 9| warning: storing the address of local
  variable 'ref_dec' in ‘img’ [-Wdangling-pointer=]

Change-Id: I142e2d31c4c71410f71ed94806c45bf8a9739b47
---
 examples/inspect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/inspect.c b/examples/inspect.c
index dca274f1e..9b2aceaec 100644
--- a/examples/inspect.c
+++ b/examples/inspect.c
@@ -773,6 +773,7 @@ int have_frame = 0;
 const unsigned char *frame;
 const unsigned char *end_frame;
 size_t frame_size = 0;
+struct av1_ref_frame ref_dec;
 
 EMSCRIPTEN_KEEPALIVE
 int read_frame(void) {
@@ -801,7 +802,6 @@ int read_frame(void) {
 
   int got_any_frames = 0;
   aom_image_t *frame_img;
-  struct av1_ref_frame ref_dec;
   ref_dec.idx = adr.idx;
 
   // ref_dec.idx is the index to the reference buffer idx to AV1_GET_REFERENCE