Unverified Commit e339b93b authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

A few more type changes

parent 8d5c2fb9
......@@ -233,13 +233,13 @@ static void shift_buffer(oggpacker *oggp) {
size "bytes", but fewer bytes can be written. The buffer remains valid through
a call to oggp_close_page() or oggp_get_next_page(), but is invalidated by
another call to oggp_get_packet_buffer() or by a call to oggp_commit_packet(). */
unsigned char *oggp_get_packet_buffer(oggpacker *oggp, int bytes) {
unsigned char *oggp_get_packet_buffer(oggpacker *oggp, oggp_int32 bytes) {
if (oggp->buf_fill + bytes > oggp->buf_size) {
shift_buffer(oggp);
/* If we didn't shift the buffer or if we did and there's still not enough room, make some more. */
if (oggp->buf_fill + bytes > oggp->buf_size) {
int newsize;
size_t newsize;
unsigned char *newbuf;
newsize = oggp->buf_fill + bytes + MAX_HEADER_SIZE;
/* Making sure we don't need to do that too often. */
......@@ -261,7 +261,7 @@ unsigned char *oggp_get_packet_buffer(oggpacker *oggp, int bytes) {
/** Tells the oggpacker that the packet buffer obtained from
oggp_get_packet_buffer() has been filled and the number of bytes written
has to be no more than what was originally asked for. */
int oggp_commit_packet(oggpacker *oggp, int bytes, oggp_uint64 granulepos, int eos) {
int oggp_commit_packet(oggpacker *oggp, oggp_int32 bytes, oggp_uint64 granulepos, int eos) {
size_t i;
size_t nb_255s;
assert(oggp->user_buf != NULL);
......
......@@ -52,12 +52,12 @@ void oggp_set_muxing_delay(oggpacker *oggp, oggp_uint64 delay);
size "bytes", but fewer bytes can be written. The buffer remains valid through
a call to oggp_close_page() or oggp_get_next_page(), but is invalidated by
another call to oggp_get_packet_buffer() or by a call to oggp_commit_packet(). */
unsigned char *oggp_get_packet_buffer(oggpacker *oggp, int bytes);
unsigned char *oggp_get_packet_buffer(oggpacker *oggp, oggp_int32 bytes);
/** Tells the oggpacker that the packet buffer obtained from
oggp_get_packet_buffer() has been filled and the number of bytes written
has to be no more than what was originally asked for. */
int oggp_commit_packet(oggpacker *oggp, int bytes, oggp_uint64 granulepos, int eos);
int oggp_commit_packet(oggpacker *oggp, oggp_int32 bytes, oggp_uint64 granulepos, int eos);
/** Create a page from the data written so far (and not yet part of a previous page).
If there is too much data for one page, then all page continuations will be closed too. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment