Mercurial > libavcodec.hg
comparison bitstream.c @ 10599:f2a8cba717b0 libavcodec
Use more consistent / meaningful parameter names for the
ff_copy_bits() function.
author | stefano |
---|---|
date | Sun, 29 Nov 2009 23:01:29 +0000 |
parents | fe761a493077 |
children | 7f75cd2bf32e |
comparison
equal
deleted
inserted
replaced
10598:5e566408864c | 10599:f2a8cba717b0 |
---|---|
45 #else | 45 #else |
46 put_bits(s,s->bit_left & 7,0); | 46 put_bits(s,s->bit_left & 7,0); |
47 #endif | 47 #endif |
48 } | 48 } |
49 | 49 |
50 void ff_put_string(PutBitContext * pbc, const char *s, int terminate_string) | 50 void ff_put_string(PutBitContext *pb, const char *string, int terminate_string) |
51 { | 51 { |
52 while(*s){ | 52 while(*string){ |
53 put_bits(pbc, 8, *s); | 53 put_bits(pb, 8, *string); |
54 s++; | 54 string++; |
55 } | 55 } |
56 if(terminate_string) | 56 if(terminate_string) |
57 put_bits(pbc, 8, 0); | 57 put_bits(pb, 8, 0); |
58 } | 58 } |
59 | 59 |
60 void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length) | 60 void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length) |
61 { | 61 { |
62 int words= length>>4; | 62 int words= length>>4; |