Mercurial > libavcodec.hg
comparison bitstream.c @ 5247:32b69770ae23 libavcodec
simplify ff_copy_bits() when compiled with config-small
| author | aurel |
|---|---|
| date | Sat, 07 Jul 2007 23:03:14 +0000 |
| parents | 2a340aea762d |
| children | 20bea6a9950c |
comparison
equal
deleted
inserted
replaced
| 5246:9975783f1cb2 | 5247:32b69770ae23 |
|---|---|
| 67 int bits= length&15; | 67 int bits= length&15; |
| 68 int i; | 68 int i; |
| 69 | 69 |
| 70 if(length==0) return; | 70 if(length==0) return; |
| 71 | 71 |
| 72 if(words < 16 || put_bits_count(pb)&7){ | 72 if(ENABLE_SMALL || words < 16 || put_bits_count(pb)&7){ |
| 73 for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(srcw[i])); | 73 for(i=0; i<words; i++) put_bits(pb, 16, be2me_16(srcw[i])); |
| 74 }else{ | 74 }else{ |
| 75 for(i=0; put_bits_count(pb)&31; i++) | 75 for(i=0; put_bits_count(pb)&31; i++) |
| 76 put_bits(pb, 8, src[i]); | 76 put_bits(pb, 8, src[i]); |
| 77 flush_put_bits(pb); | 77 flush_put_bits(pb); |
