diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index 57dd93e0ad..6781fe6cb0 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -83,7 +83,7 @@ void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length) if(length==0) return; if(CONFIG_SMALL || words < 16 || put_bits_count(pb)&7){ - for(i=0; i>(16-bits)); + put_bits(pb, bits, AV_RB16(&srcw[words])>>(16-bits)); } /* VLC decoding */