loco: use init_get_bits8()
authorPaul B Mahol <onemda@gmail.com>
Wed, 21 Aug 2013 20:29:05 +0000 (20:29 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 21 Aug 2013 20:29:05 +0000 (20:29 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/loco.c

index ffb9742..81a93c8 100644 (file)
@@ -135,7 +135,7 @@ static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int heigh
     if(buf_size<=0)
         return -1;
 
-    init_get_bits(&rc.gb, buf, buf_size*8);
+    init_get_bits8(&rc.gb, buf, buf_size);
     rc.save  = 0;
     rc.run   = 0;
     rc.run2  = 0;