1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

truespeech: remove unneeded variable, 'consumed'

increment the 'buf' pointer instead, and consume the whole packet.
This commit is contained in:
Justin Ruggles 2011-10-13 00:21:17 -04:00
parent b84048935e
commit 6d55506c8b

View File

@ -310,7 +310,6 @@ static int truespeech_decode_frame(AVCodecContext *avctx,
int i, j; int i, j;
short *samples = data; short *samples = data;
int consumed = 0;
int iterations, out_size; int iterations, out_size;
iterations = buf_size / 32; iterations = buf_size / 32;
@ -330,8 +329,8 @@ static int truespeech_decode_frame(AVCodecContext *avctx,
memset(samples, 0, out_size); memset(samples, 0, out_size);
for(j = 0; j < iterations; j++) { for(j = 0; j < iterations; j++) {
truespeech_read_frame(c, buf + consumed); truespeech_read_frame(c, buf);
consumed += 32; buf += 32;
truespeech_correlate_filter(c); truespeech_correlate_filter(c);
truespeech_filters_merge(c); truespeech_filters_merge(c);
@ -349,7 +348,7 @@ static int truespeech_decode_frame(AVCodecContext *avctx,
*data_size = out_size; *data_size = out_size;
return consumed; return buf_size;
} }
AVCodec ff_truespeech_decoder = { AVCodec ff_truespeech_decoder = {