mirror of https://git.ffmpeg.org/ffmpeg.git
simplify ff_copy_bits: merge 2 test branches
Originally committed as revision 9504 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
98f7b56bb6
commit
5084ed3a9f
|
@ -69,9 +69,7 @@ void ff_copy_bits(PutBitContext *pb, uint8_t *src, int length)
|
||||||
|
|
||||||
if(length==0) return;
|
if(length==0) return;
|
||||||
|
|
||||||
if(words < 16){
|
if(words < 16 || put_bits_count(pb)&7){
|
||||||
for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(srcw[i]));
|
|
||||||
}else if(put_bits_count(pb)&7){
|
|
||||||
for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(srcw[i]));
|
for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(srcw[i]));
|
||||||
}else{
|
}else{
|
||||||
for(i=0; put_bits_count(pb)&31; i++)
|
for(i=0; put_bits_count(pb)&31; i++)
|
||||||
|
|
Loading…
Reference in New Issue