comparison nellymoserdec.c @ 5915:4528d63fbc8e libavcodec

Fix nellymoser decode_tag return value, patch by Stefano Sabatini
author banan
date Wed, 14 Nov 2007 08:22:15 +0000
parents ce9415dd447a
children 353fca09cb72
comparison
equal deleted inserted replaced
5914:f6c430823940 5915:4528d63fbc8e
388 nelly_decode_block(s, &buf[i*NELLY_BLOCK_LEN], s->float_buf); 388 nelly_decode_block(s, &buf[i*NELLY_BLOCK_LEN], s->float_buf);
389 s->dsp.float_to_int16(&samples[i*NELLY_SAMPLES], s->float_buf, NELLY_SAMPLES); 389 s->dsp.float_to_int16(&samples[i*NELLY_SAMPLES], s->float_buf, NELLY_SAMPLES);
390 *data_size += NELLY_SAMPLES*sizeof(int16_t); 390 *data_size += NELLY_SAMPLES*sizeof(int16_t);
391 } 391 }
392 392
393 return blocks*NELLY_SAMPLES*sizeof(int16_t); 393 return buf_size;
394 } 394 }
395 395
396 static int decode_end(AVCodecContext * avctx) { 396 static int decode_end(AVCodecContext * avctx) {
397 NellyMoserDecodeContext *s = avctx->priv_data; 397 NellyMoserDecodeContext *s = avctx->priv_data;
398 398