changeset 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 5e566408864c
children 40af8390d83f
files bitstream.c put_bits.h
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/bitstream.c	Sun Nov 29 15:15:53 2009 +0000
+++ b/bitstream.c	Sun Nov 29 23:01:29 2009 +0000
@@ -47,14 +47,14 @@
 #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)
--- a/put_bits.h	Sun Nov 29 15:15:53 2009 +0000
+++ b/put_bits.h	Sun Nov 29 23:01:29 2009 +0000
@@ -123,11 +123,11 @@
 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.