Mercurial > libavcodec.hg
comparison gif.c @ 9431:932543edc1d2 libavcodec
Rename pbBufPtr() to put_bits_ptr().
The new name is more readable and consistent with the FFmpeg naming
style.
author | stefano |
---|---|
date | Mon, 13 Apr 2009 16:59:38 +0000 |
parents | 4cb7c65fc775 |
children | 38cfe222e1a4 |
comparison
equal
deleted
inserted
replaced
9430:e806d2145e72 | 9431:932543edc1d2 |
---|---|
124 | 124 |
125 if(left<=GIF_CHUNKS) { | 125 if(left<=GIF_CHUNKS) { |
126 put_bits(&p, 9, 0x101); /* end of stream */ | 126 put_bits(&p, 9, 0x101); /* end of stream */ |
127 flush_put_bits(&p); | 127 flush_put_bits(&p); |
128 } | 128 } |
129 if(pbBufPtr(&p) - p.buf > 0) { | 129 if(put_bits_ptr(&p) - p.buf > 0) { |
130 bytestream_put_byte(bytestream, pbBufPtr(&p) - p.buf); /* byte count of the packet */ | 130 bytestream_put_byte(bytestream, put_bits_ptr(&p) - p.buf); /* byte count of the packet */ |
131 bytestream_put_buffer(bytestream, p.buf, pbBufPtr(&p) - p.buf); /* the actual buffer */ | 131 bytestream_put_buffer(bytestream, p.buf, put_bits_ptr(&p) - p.buf); /* the actual buffer */ |
132 p.buf_ptr = p.buf; /* dequeue the bytes off the bitstream */ | 132 p.buf_ptr = p.buf; /* dequeue the bytes off the bitstream */ |
133 } | 133 } |
134 left-=GIF_CHUNKS; | 134 left-=GIF_CHUNKS; |
135 } | 135 } |
136 bytestream_put_byte(bytestream, 0x00); /* end of image block */ | 136 bytestream_put_byte(bytestream, 0x00); /* end of image block */ |