summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/bitstream.c10
-rw-r--r--libavcodec/put_bits.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index d8d0f3c7be..9002830cec 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -47,14 +47,14 @@ void align_put_bits(PutBitContext *s)
#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){
- put_bits(pbc, 8, *s);
- s++;
+ while(*string){
+ put_bits(pb, 8, *string);
+ 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)
diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h
index 72cd62f635..d16abfc56b 100644
--- a/libavcodec/put_bits.h
+++ b/libavcodec/put_bits.h
@@ -123,11 +123,11 @@ static inline void flush_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
*/
-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.