# HG changeset patch # User michaelni # Date 1020467604 0 # Node ID 2066dc543be421f5d4f0dd2a4f033b918df49f73 # Parent ae179ec5fb475d485d54f8670ffa9b552d6f27ab move put_string() to common.{c,h} diff -r ae179ec5fb47 -r 2066dc543be4 common.c --- a/common.c Fri May 03 21:38:02 2002 +0000 +++ b/common.c Fri May 03 23:13:24 2002 +0000 @@ -108,6 +108,15 @@ } #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, diff -r ae179ec5fb47 -r 2066dc543be4 common.h --- a/common.h Fri May 03 21:38:02 2002 +0000 +++ b/common.h Fri May 03 23:13:24 2002 +0000 @@ -186,6 +186,7 @@ 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); diff -r ae179ec5fb47 -r 2066dc543be4 h263.c --- a/h263.c Fri May 03 21:38:02 2002 +0000 +++ b/h263.c Fri May 03 23:13:24 2002 +0000 @@ -1102,15 +1102,6 @@ put_bits(pbc, length, (1<