[FFmpeg-cvslog] avcodec/eatgq: move array to where it is used

Michael Niedermayer git at videolan.org
Mon Dec 2 04:28:21 EET 2024


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Sep 23 20:51:21 2024 +0200| [cdce6a8b97c3b7ef5bc0ef05b28adbfa96c29a4a] | committer: Michael Niedermayer

avcodec/eatgq: move array to where it is used

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cdce6a8b97c3b7ef5bc0ef05b28adbfa96c29a4a
---

 libavcodec/eatgq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c
index e488f3c510..3596d00e6f 100644
--- a/libavcodec/eatgq.c
+++ b/libavcodec/eatgq.c
@@ -161,7 +161,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) {
@@ -178,6 +177,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 == 1) {
             int x, y;
             int mv = bytestream2_get_byte(gbyte);



More information about the ffmpeg-cvslog mailing list