diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-13 16:59:38 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-13 16:59:38 +0000 |
commit | fb53b4a035c3682f5a8ab4241bde797ced539945 (patch) | |
tree | 18322fdb724ea3ad2cd1e4927e0354bf38de7907 /libavcodec/gif.c | |
parent | 084c7cc54a60e05ee240354d8013f512dac04ad2 (diff) | |
download | ffmpeg-fb53b4a035c3682f5a8ab4241bde797ced539945.tar.gz |
Rename pbBufPtr() to put_bits_ptr().
The new name is more readable and consistent with the FFmpeg naming
style.
Originally committed as revision 18497 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/gif.c')
-rw-r--r-- | libavcodec/gif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 6ab00e14ee..8cd51c5b74 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -126,9 +126,9 @@ static int gif_image_write_image(uint8_t **bytestream, put_bits(&p, 9, 0x101); /* end of stream */ flush_put_bits(&p); } - if(pbBufPtr(&p) - p.buf > 0) { - bytestream_put_byte(bytestream, pbBufPtr(&p) - p.buf); /* byte count of the packet */ - bytestream_put_buffer(bytestream, p.buf, pbBufPtr(&p) - p.buf); /* the actual buffer */ + if(put_bits_ptr(&p) - p.buf > 0) { + bytestream_put_byte(bytestream, put_bits_ptr(&p) - p.buf); /* byte count of the packet */ + bytestream_put_buffer(bytestream, p.buf, put_bits_ptr(&p) - p.buf); /* the actual buffer */ p.buf_ptr = p.buf; /* dequeue the bytes off the bitstream */ } left-=GIF_CHUNKS; |