Commit d3b60aa6 authored by Vitor Sessak's avatar Vitor Sessak

100l, revision 19728 added a bug that broke twinvq decoding. I forgot to

multiply the buffer size by the number of channels.

Originally committed as revision 19730 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 50e23ae9
...@@ -860,7 +860,7 @@ static int twin_decode_frame(AVCodecContext * avctx, void *data, ...@@ -860,7 +860,7 @@ static int twin_decode_frame(AVCodecContext * avctx, void *data,
} }
tctx->dsp.vector_clipf(out, out, -32700./(1<<15), 32700./(1<<15), tctx->dsp.vector_clipf(out, out, -32700./(1<<15), 32700./(1<<15),
mtab->size); avctx->channels * mtab->size);
*data_size = mtab->size*avctx->channels*4; *data_size = mtab->size*avctx->channels*4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment