Mercurial > libavcodec.hg
changeset 358:2066dc543be4 libavcodec
move put_string() to common.{c,h}
author | michaelni |
---|---|
date | Fri, 03 May 2002 23:13:24 +0000 |
parents | ae179ec5fb47 |
children | df0736462b9f |
files | common.c common.h h263.c |
diffstat | 3 files changed, 10 insertions(+), 9 deletions(-) [+] |
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,
--- 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);
--- 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<<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;