[FFmpeg-cvslog] r20663 - in trunk/libavcodec: bitstream.c put_bits.h

stefano subversion
Mon Nov 30 00:01:29 CET 2009


Author: stefano
Date: Mon Nov 30 00:01:29 2009
New Revision: 20663

Log:
Use more consistent / meaningful parameter names for the
ff_copy_bits() function.

Modified:
   trunk/libavcodec/bitstream.c
   trunk/libavcodec/put_bits.h

Modified: trunk/libavcodec/bitstream.c
==============================================================================
--- trunk/libavcodec/bitstream.c	Sun Nov 29 23:39:38 2009	(r20662)
+++ trunk/libavcodec/bitstream.c	Mon Nov 30 00:01:29 2009	(r20663)
@@ -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)

Modified: trunk/libavcodec/put_bits.h
==============================================================================
--- trunk/libavcodec/put_bits.h	Sun Nov 29 23:39:38 2009	(r20662)
+++ trunk/libavcodec/put_bits.h	Mon Nov 30 00:01:29 2009	(r20663)
@@ -123,11 +123,11 @@ static inline void flush_put_bits(PutBit
 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.



More information about the ffmpeg-cvslog mailing list