block_last_index was too large (in mpeg1 decoding)
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Feb 2002 00:31:16 +0000 (00:31 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Feb 2002 00:31:16 +0000 (00:31 +0000)
Originally committed as revision 301 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpeg12.c

index 906643d..b7af926 100644 (file)
@@ -948,7 +948,7 @@ static int mpeg1_decode_block(MpegEncContext *s,
         block[j] = level;
         i++;
     }
-    s->block_last_index[n] = i;
+    s->block_last_index[n] = i-1;
     return 0;
 }