]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavcodec/gif.c
Rename pbBufPtr() to put_bits_ptr().
[frescor/ffmpeg.git] / libavcodec / gif.c
index 6ab00e14eeb033ef16964441044746c7d9ed16b3..8cd51c5b74f4b6cae6e1b7c8c36e8adfd210378d 100644 (file)
@@ -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;