projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed0cff
)
Fix regression introduced by r12929.
author
Ramiro Polla
<ramiro.polla@gmail.com>
Tue, 22 Apr 2008 23:24:47 +0000
(23:24 +0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Tue, 22 Apr 2008 23:24:47 +0000
(23:24 +0000)
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
libavcodec/mimic.c
patch
|
blob
|
history
diff --git
a/libavcodec/mimic.c
b/libavcodec/mimic.c
index
252dd88
..
7687f0e
100644
(file)
--- 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;