diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-12-19 09:29:11 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-01-03 18:47:41 -0500 |
commit | 25edfc88e3d2423cd95509f1270f6229660ee809 (patch) | |
tree | 01f076b5c5d6bb872705a7aacdd0b473f2432a94 | |
parent | c98c6e18d82a34c7b02d9539d4a79ec3c60fc0b9 (diff) | |
download | ffmpeg-25edfc88e3d2423cd95509f1270f6229660ee809.tar.gz |
adxenc: change some data types
-rw-r--r-- | libavcodec/adxenc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/adxenc.c b/libavcodec/adxenc.c index 7c3373ce46..77052544f7 100644 --- a/libavcodec/adxenc.c +++ b/libavcodec/adxenc.c @@ -33,7 +33,7 @@ * adx2wav & wav2adx http://www.geocities.co.jp/Playtown/2004/ */ -static void adx_encode(ADXContext *c, unsigned char *adx, const short *wav, +static void adx_encode(ADXContext *c, uint8_t *adx, const int16_t *wav, ADXChannelState *prev) { PutBitContext pb; @@ -76,7 +76,7 @@ static void adx_encode(ADXContext *c, unsigned char *adx, const short *wav, flush_put_bits(&pb); } -static int adx_encode_header(AVCodecContext *avctx,unsigned char *buf,size_t bufsize) +static int adx_encode_header(AVCodecContext *avctx, uint8_t *buf, int bufsize) { ADXContext *c = avctx->priv_data; @@ -121,9 +121,9 @@ static int adx_encode_frame(AVCodecContext *avctx, uint8_t *frame, int buf_size, void *data) { ADXContext *c = avctx->priv_data; - const short *samples = data; - unsigned char *dst = frame; - int rest = avctx->frame_size; + const int16_t *samples = data; + uint8_t *dst = frame; + int rest = avctx->frame_size; if (!c->header_parsed) { int hdrsize = adx_encode_header(avctx,dst,buf_size); @@ -140,7 +140,7 @@ static int adx_encode_frame(AVCodecContext *avctx, } } else { while(rest>=32*2) { - short tmpbuf[32*2]; + int16_t tmpbuf[32*2]; int i; for(i=0;i<32;i++) { |