Commit ad7b6a50 authored by michael's avatar michael

activate the memcpy special case for the byte aligned case in ff_copy_bits(),...

activate the memcpy special case for the byte aligned case in ff_copy_bits(), wasnt working before because of a incorrectly used pbBufPtr()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2775 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e63316e3
......@@ -3738,13 +3738,13 @@ void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length)
if(length==0) return;
// if(put_bits_count(pb)&7){ //FIXME
if(put_bits_count(pb)&7){
for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(((uint16_t*)src)[i]));
/* }else{
}else{
flush_put_bits(pb);
memcpy(pbBufPtr(pb), src, 2*words);
skip_put_bytes(pb, 2*words);
}*/
}
put_bits(pb, bits, be2me_16(((uint16_t*)src)[words])>>(16-bits));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment