diff mjpeg.c @ 1560:07dac732074a libavcodec

10l
author alex
date Wed, 22 Oct 2003 22:12:25 +0000
parents dd544554ed42
children 932d306bf1dc
line wrap: on
line diff
--- a/mjpeg.c	Wed Oct 22 22:10:22 2003 +0000
+++ b/mjpeg.c	Wed Oct 22 22:12:25 2003 +0000
@@ -2148,7 +2148,7 @@
     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