diff mbox series

[FFmpeg-devel,3/7] avcodec/eatgq: move array to where it is used

Message ID 20240923213249.3256534-3-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,1/7] avcodec/ilbcdec: Initialize tempbuff2 | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Michael Niedermayer Sept. 23, 2024, 9:32 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/eatgq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c
index d326c053907..190c57f1c00 100644
--- a/libavcodec/eatgq.c
+++ b/libavcodec/eatgq.c
@@ -156,7 +156,6 @@  static int tgq_decode_mb(TgqContext *s, GetByteContext *gbyte,
 {
     int mode;
     int i;
-    int8_t dc[6];
 
     mode = bytestream2_get_byte(gbyte);
     if (mode > 12) {
@@ -173,6 +172,7 @@  static int tgq_decode_mb(TgqContext *s, GetByteContext *gbyte,
         tgq_idct_put_mb(s, s->block, frame, mb_x, mb_y);
         bytestream2_skip(gbyte, mode);
     } else {
+        int8_t dc[6];
         if (mode == 3) {
             memset(dc, bytestream2_get_byte(gbyte), 4);
             dc[4] = bytestream2_get_byte(gbyte);