Browse Source

Rename the 'put_zero' parameter of ff_put_string() to

'terminate_string'.

Originally committed as revision 18442 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Stefano Sabatini 17 years ago
parent
commit
54b02ccda2
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      libavcodec/bitstream.c
  2. +1
    -1
      libavcodec/bitstream.h

+ 2
- 2
libavcodec/bitstream.c View File

@@ -65,13 +65,13 @@ void align_put_bits(PutBitContext *s)
#endif #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){ while(*s){
put_bits(pbc, 8, *s); put_bits(pbc, 8, *s);
s++; s++;
} }
if(put_zero)
if(terminate_string)
put_bits(pbc, 8, 0); put_bits(pbc, 8, 0);
} }




+ 1
- 1
libavcodec/bitstream.h View File

@@ -159,7 +159,7 @@ static inline void flush_put_bits(PutBitContext *s)
* Pads the bitstream with zeros up to the next byte boundary. * Pads the bitstream with zeros up to the next byte boundary.
*/ */
void align_put_bits(PutBitContext *s); 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. * Copies the content of \p src to the bitstream.


Loading…
Cancel
Save