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

stefano subversion
Sat Apr 11 17:54:22 CEST 2009


Author: stefano
Date: Sat Apr 11 17:54:21 2009
New Revision: 18442

Log:
Rename the 'put_zero' parameter of ff_put_string() to
'terminate_string'.

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

Modified: trunk/libavcodec/bitstream.c
==============================================================================
--- trunk/libavcodec/bitstream.c	Sat Apr 11 16:49:46 2009	(r18441)
+++ trunk/libavcodec/bitstream.c	Sat Apr 11 17:54:21 2009	(r18442)
@@ -65,13 +65,13 @@ void align_put_bits(PutBitContext *s)
 #endif
 }
 
-void ff_put_string(PutBitContext * pbc, const char *s, int put_zero)
+void ff_put_string(PutBitContext * pbc, const char *s, int terminate_string)
 {
     while(*s){
         put_bits(pbc, 8, *s);
         s++;
     }
-    if(put_zero)
+    if(terminate_string)
         put_bits(pbc, 8, 0);
 }
 

Modified: trunk/libavcodec/bitstream.h
==============================================================================
--- trunk/libavcodec/bitstream.h	Sat Apr 11 16:49:46 2009	(r18441)
+++ trunk/libavcodec/bitstream.h	Sat Apr 11 17:54:21 2009	(r18442)
@@ -159,7 +159,7 @@ static inline void flush_put_bits(PutBit
  * Pads the bitstream with zeros up to the next byte boundary.
  */
 void align_put_bits(PutBitContext *s);
-void ff_put_string(PutBitContext * pbc, const char *s, int put_zero);
+void ff_put_string(PutBitContext * pbc, const char *s, int terminate_string);
 
 /**
  * Copies the content of \p src to the bitstream.



More information about the ffmpeg-cvslog mailing list