summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-02-18 00:31:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-02-18 00:31:16 +0000
commit3696d2bb83ea19436eb3165c66482e61470c3ee0 (patch)
tree52d387754a3890a3e1368ac6f8e374e1fb4f6e9d /libavcodec
parentb4dbd87c0411ddfafd645d65e1214bcb2c376ddd (diff)
block_last_index was too large (in mpeg1 decoding)
Originally committed as revision 301 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 906643de16..b7af9262d7 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -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;
}