Mercurial > libavcodec.hg
diff common.c @ 358:2066dc543be4 libavcodec
move put_string() to common.{c,h}
author | michaelni |
---|---|
date | Fri, 03 May 2002 23:13:24 +0000 |
parents | 9c6f056f0e41 |
children | fce0a2520551 |
line wrap: on
line diff
--- 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,