Commit 587edd6a authored by Stefano Sabatini's avatar Stefano Sabatini

Use more consistent / meaningful parameter names for the

ff_copy_bits() function.

Originally committed as revision 20663 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 244c8d10
...@@ -47,14 +47,14 @@ void align_put_bits(PutBitContext *s) ...@@ -47,14 +47,14 @@ void align_put_bits(PutBitContext *s)
#endif #endif
} }
void ff_put_string(PutBitContext * pbc, const char *s, int terminate_string) void ff_put_string(PutBitContext *pb, const char *string, int terminate_string)
{ {
while(*s){ while(*string){
put_bits(pbc, 8, *s); put_bits(pb, 8, *string);
s++; string++;
} }
if(terminate_string) if(terminate_string)
put_bits(pbc, 8, 0); put_bits(pb, 8, 0);
} }
void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length) void ff_copy_bits(PutBitContext *pb, const uint8_t *src, int length)
......
...@@ -123,11 +123,11 @@ static inline void flush_put_bits(PutBitContext *s) ...@@ -123,11 +123,11 @@ static inline void flush_put_bits(PutBitContext *s)
void align_put_bits(PutBitContext *s); void align_put_bits(PutBitContext *s);
/** /**
* Puts the string s in the bitstream. * Puts the string string in the bitstream.
* *
* @param terminate_string 0-terminates the written string if value is 1 * @param terminate_string 0-terminates the written string if value is 1
*/ */
void ff_put_string(PutBitContext * pbc, const char *s, int terminate_string); void ff_put_string(PutBitContext *pb, const char *string, int terminate_string);
/** /**
* Copies the content of src to the bitstream. * Copies the content of src to the bitstream.
......
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