diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index fce7135b1b64fd0d875b2c05b9754dd62e816382..1b3be9dbc27ad0d9a4c3b628c936ec5e0189ca77 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1453,8 +1453,8 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict){
         const int shift= 1 + s->quarter_sample;
         int mb_y;
         uint8_t *ptr;
-        s->low_delay=0; //needed to see the vectors without trashing the buffers
         int i;
+        s->low_delay=0; //needed to see the vectors without trashing the buffers
 
         for(i=0; i<3; i++){
             memcpy(s->visualization_buffer[i], pict->data[i], (i==0) ? pict->linesize[i]*s->height:pict->linesize[i]*s->height/2);