summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-09-05 18:57:51 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-09-05 18:57:51 +0200
commite4dedafd25149b200f5c56a992ac57f91ee4f42f (patch)
tree56d7e5223d15535e68da146a11b0a262c6d2057b
parent80b0626ec8e6534d4783c79c61ca15f5555c4caf (diff)
Fixed compiler warnings in mpg123 decoder and lame encoder.
-rw-r--r--decoders/decoder_mpg123.c4
-rw-r--r--encoders/encoder_lame.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/decoders/decoder_mpg123.c b/decoders/decoder_mpg123.c
index a7cf3d0..ea263f5 100644
--- a/decoders/decoder_mpg123.c
+++ b/decoders/decoder_mpg123.c
@@ -36,8 +36,8 @@ static gssize mpg123_decoder_decode(gpointer data, GInputStream *input,
int ret;
const int inbuf_size = 0x400*8;
const int outbuf_size = 0x400*8;
- char inbuf[inbuf_size];
- char outbuf[inbuf_size];
+ unsigned char inbuf[inbuf_size];
+ unsigned char outbuf[inbuf_size];
gsize inbuf_read = g_input_stream_read(input, inbuf, inbuf_size, NULL, NULL);
diff --git a/encoders/encoder_lame.c b/encoders/encoder_lame.c
index 39dea94..bf3baff 100644
--- a/encoders/encoder_lame.c
+++ b/encoders/encoder_lame.c
@@ -15,10 +15,10 @@ static gboolean lame_encoder_init(gpointer *data) {
static gssize lame_encoder_encode(gpointer data, GInputStream *input,
GOutputStream *output) {
lame_global_flags *gfp = data;
- const inbuf_size = 0x400*8;
- const outbuf_size = 0x400*8;
- gchar inbuf[inbuf_size];
- gchar outbuf[inbuf_size];
+ const int inbuf_size = 0x400*8;
+ const int outbuf_size = 0x400*8;
+ unsigned char inbuf[inbuf_size];
+ unsigned char outbuf[inbuf_size];
int inbuf_read = g_input_stream_read(input, inbuf, inbuf_size, NULL, NULL);