diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2011-12-16 12:25:20 +0200 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2011-12-16 12:25:20 +0200 |
commit | 8304f7562d4023c2a5c8d7ca767c5676273dcbec (patch) | |
tree | a2895d4843954e09c91261acd9bb835db4ce8b7e /src/combined/decoder_flac.c | |
parent | ebdd937405e27e2fa5e7eff39654b30bab57e070 (diff) | |
download | xine-lib-8304f7562d4023c2a5c8d7ca767c5676273dcbec.tar.gz xine-lib-8304f7562d4023c2a5c8d7ca767c5676273dcbec.tar.bz2 |
flac decoder: int -> size_t
--HG--
branch : point-release
Diffstat (limited to 'src/combined/decoder_flac.c')
-rw-r--r-- | src/combined/decoder_flac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/combined/decoder_flac.c b/src/combined/decoder_flac.c index 079c01008..b8650810b 100644 --- a/src/combined/decoder_flac.c +++ b/src/combined/decoder_flac.c @@ -72,9 +72,9 @@ typedef struct flac_decoder_s { int channels; unsigned char *buf; - int buf_size; - int buf_pos; - int min_size; + size_t buf_size; + size_t buf_pos; + size_t min_size; } flac_decoder_t; @@ -97,16 +97,16 @@ flac_read_callback (const FLAC__StreamDecoder *decoder, #endif { flac_decoder_t *this = (flac_decoder_t *)client_data; - int number_of_bytes_to_copy; + size_t number_of_bytes_to_copy; - lprintf("flac_read_callback: %d\n", *bytes); + lprintf("flac_read_callback: %zd\n", (size_t)*bytes); if (this->buf_pos > *bytes) number_of_bytes_to_copy = *bytes; else number_of_bytes_to_copy = this->buf_pos; - lprintf("number_of_bytes_to_copy: %d\n", number_of_bytes_to_copy); + lprintf("number_of_bytes_to_copy: %zd\n", number_of_bytes_to_copy); *bytes = number_of_bytes_to_copy; |