move put_string() to common.{c,h}
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 May 2002 23:13:24 +0000 (23:13 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 3 May 2002 23:13:24 +0000 (23:13 +0000)
Originally committed as revision 439 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/common.c
libavcodec/common.h
libavcodec/h263.c

index 5224299..19bf962 100644 (file)
@@ -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, 
index b365081..b76288b 100644 (file)
@@ -186,6 +186,7 @@ void init_put_bits(PutBitContext *s,
 INT64 get_bit_count(PutBitContext *s); /* XXX: change function name */
 void align_put_bits(PutBitContext *s);
 void flush_put_bits(PutBitContext *s);
+void put_string(PutBitContext * pbc, char *s);
 
 /* jpeg specific put_bits */
 void jflush_put_bits(PutBitContext *s);
index d6114ff..2a44eb0 100644 (file)
@@ -1102,15 +1102,6 @@ static void mpeg4_stuffing(PutBitContext * pbc)
     put_bits(pbc, length, (1<<length)-1);
 }
 
-static void put_string(PutBitContext * pbc, char *s)
-{
-    while(*s){
-        put_bits(pbc, 8, *s);
-        s++;
-    }
-    put_bits(pbc, 8, 0);
-}
-
 /* must be called before writing the header */
 void ff_set_mpeg4_time(MpegEncContext * s, int picture_number){
     int time_div, time_mod;