diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-04-22 23:24:47 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-04-22 23:24:47 +0000 |
commit | a960000304dedcfc89e62ab09202a535d24b5cca (patch) | |
tree | 87b422ee423c07f03c8b563f6a16a17da3e1ec9f | |
parent | 9ed0cff98ec9d9c45b6f1138b42768c3002acf6f (diff) | |
download | ffmpeg-a960000304dedcfc89e62ab09202a535d24b5cca.tar.gz |
Fix regression introduced by r12929.
num_coeffs is just one byte.
It would make no sense for num_coeffs to be as high as 2^32.
Originally committed as revision 12931 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mimic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index 252dd88645..7687f0ef68 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -293,7 +293,8 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data, height = bytestream_get_le16(&buf); buf += 4; /* some constant */ is_pframe = bytestream_get_le32(&buf); - num_coeffs = bytestream_get_le32(&buf); + num_coeffs = bytestream_get_byte(&buf); + buf += 3; /* some constant */ if(!ctx->avctx) { int i; |