summaryrefslogtreecommitdiff
path: root/libavformat/gif.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/gif.c')
-rw-r--r--libavformat/gif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c
index 7ac9499577..2b802a9dca 100644
--- a/libavformat/gif.c
+++ b/libavformat/gif.c
@@ -232,9 +232,9 @@ static int gif_image_write_image(ByteIOContext *pb,
put_bits(&p, 9, 0x101); /* end of stream */
flush_put_bits(&p);
}
- if(pbBufPtr(&p) - p.buf > 0) {
- put_byte(pb, pbBufPtr(&p) - p.buf); /* byte count of the packet */
- put_buffer(pb, p.buf, pbBufPtr(&p) - p.buf); /* the actual buffer */
+ if(put_bits_ptr(&p) - p.buf > 0) {
+ put_byte(pb, put_bits_ptr(&p) - p.buf); /* byte count of the packet */
+ put_buffer(pb, 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;