Mercurial > libavformat.hg
comparison gif.c @ 4873:1800b33b2c15 libavformat
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 | 7aa7c5853bb6 |
children | 536e5527c1e0 |
comparison
equal
deleted
inserted
replaced
4872:304a0ea063f0 | 4873:1800b33b2c15 |
---|---|
230 | 230 |
231 if(left<=GIF_CHUNKS) { | 231 if(left<=GIF_CHUNKS) { |
232 put_bits(&p, 9, 0x101); /* end of stream */ | 232 put_bits(&p, 9, 0x101); /* end of stream */ |
233 flush_put_bits(&p); | 233 flush_put_bits(&p); |
234 } | 234 } |
235 if(pbBufPtr(&p) - p.buf > 0) { | 235 if(put_bits_ptr(&p) - p.buf > 0) { |
236 put_byte(pb, pbBufPtr(&p) - p.buf); /* byte count of the packet */ | 236 put_byte(pb, put_bits_ptr(&p) - p.buf); /* byte count of the packet */ |
237 put_buffer(pb, p.buf, pbBufPtr(&p) - p.buf); /* the actual buffer */ | 237 put_buffer(pb, p.buf, put_bits_ptr(&p) - p.buf); /* the actual buffer */ |
238 p.buf_ptr = p.buf; /* dequeue the bytes off the bitstream */ | 238 p.buf_ptr = p.buf; /* dequeue the bytes off the bitstream */ |
239 } | 239 } |
240 left-=GIF_CHUNKS; | 240 left-=GIF_CHUNKS; |
241 } | 241 } |
242 put_byte(pb, 0x00); /* end of image block */ | 242 put_byte(pb, 0x00); /* end of image block */ |