aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/common.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-05-03 23:13:24 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-05-03 23:13:24 +0000
commit9717dad88345bcc7e86ea807cc02b9988004657f (patch)
tree6d8fb36a5c28083a624f3aeabcfcbc7864e16890 /libavcodec/common.c
parent1c3a2382d04168a233657c9ce79b9913d927bc0f (diff)
downloadffmpeg-9717dad88345bcc7e86ea807cc02b9988004657f.tar.gz
move put_string() to common.{c,h}
Originally committed as revision 439 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.c')
-rw-r--r--libavcodec/common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/common.c b/libavcodec/common.c
index 5224299fda..19bf9621cb 100644
--- a/libavcodec/common.c
+++ b/libavcodec/common.c
@@ -108,6 +108,15 @@ void jflush_put_bits(PutBitContext *s)
}
#endif
+void put_string(PutBitContext * pbc, char *s)
+{
+ while(*s){
+ put_bits(pbc, 8, *s);
+ s++;
+ }
+ put_bits(pbc, 8, 0);
+}
+
/* bit input functions */
void init_get_bits(GetBitContext *s,