git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ffb009
)
10l
author
Alex Beregszaszi
<alex@rtfs.hu>
Wed, 22 Oct 2003 22:12:25 +0000
(22:12 +0000)
committer
Alex Beregszaszi
<alex@rtfs.hu>
Wed, 22 Oct 2003 22:12:25 +0000
(22:12 +0000)
Originally committed as revision 2418 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mjpeg.c
patch
|
blob
|
history
diff --git
a/libavcodec/mjpeg.c
b/libavcodec/mjpeg.c
index
f2267fa
..
084badb
100644
(file)
--- 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