pcx: use init_get_bits8()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Feb 2013 16:19:15 +0000 (17:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Feb 2013 16:32:05 +0000 (17:32 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pcx.c

index 6163c6e..d21639e 100644 (file)
@@ -200,7 +200,7 @@ static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
         GetBitContext s;
 
         for (y=0; y<h; y++) {
-            init_get_bits(&s, scanline, bytes_per_scanline<<3);
+            init_get_bits8(&s, scanline, bytes_per_scanline);
 
             pcx_rle_decode(&gb, scanline, bytes_per_scanline, compressed);