summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2003-10-22 22:12:25 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2003-10-22 22:12:25 +0000
commit369e2d5024f5e309a4ccc90560167345cc69d4b3 (patch)
tree984f033abb268d1164a0c1f28eb984b112492937 /libavcodec
parent1ffb0091aa3c05bd851bd926ce79b7451894b6dc (diff)
10l
Originally committed as revision 2418 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mjpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index f2267faf8f..084badb7b3 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -2148,7 +2148,7 @@ static int sp5x_decode_frame(AVCodecContext *avctx,
s->mb_width = (s->width * s->h_max * 8 -1) / (s->h_max * 8);
s->mb_height = (s->height * s->v_max * 8 -1) / (s->v_max * 8);
- init_get_bits(&s->gb, buf, buf_size*8);
+ init_get_bits(&s->gb, buf+14, (buf_size-14)*8);
return mjpeg_decode_scan(s);
#endif