comparison 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
comparison
equal deleted inserted replaced
357:ae179ec5fb47 358:2066dc543be4
106 int num= ( - s->index) & 7; 106 int num= ( - s->index) & 7;
107 jput_bits(s, num,0xFF>>(8-num)); 107 jput_bits(s, num,0xFF>>(8-num));
108 } 108 }
109 #endif 109 #endif
110 110
111 void put_string(PutBitContext * pbc, char *s)
112 {
113 while(*s){
114 put_bits(pbc, 8, *s);
115 s++;
116 }
117 put_bits(pbc, 8, 0);
118 }
119
111 /* bit input functions */ 120 /* bit input functions */
112 121
113 void init_get_bits(GetBitContext *s, 122 void init_get_bits(GetBitContext *s,
114 UINT8 *buffer, int buffer_size) 123 UINT8 *buffer, int buffer_size)
115 { 124 {