Commit 8a347a14 authored by aurel's avatar aurel

simplify ff_copy_bits: merge 2 test branches

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9504 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 341ff2d5
......@@ -69,9 +69,7 @@ void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length)
if(length==0) return;
if(words < 16){
for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(srcw[i]));
}else if(put_bits_count(pb)&7){
if(words < 16 || put_bits_count(pb)&7){
for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(srcw[i]));
}else{
for(i=0; put_bits_count(pb)&31; i++)
......
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