Mercurial > libavcodec.hg
comparison twinvq.c @ 11652:8b6f3d3b55cb libavcodec
Move clipping of audio samples (for those codecs outputting float) from decoder
to the audio conversion routines.
author | rbultje |
---|---|
date | Wed, 21 Apr 2010 17:57:48 +0000 |
parents | 8a4984c5cacc |
children | 778bdafd5496 |
comparison
equal
deleted
inserted
replaced
11651:926ad89ae57a | 11652:8b6f3d3b55cb |
---|---|
848 if (tctx->avctx->frame_number < 2) { | 848 if (tctx->avctx->frame_number < 2) { |
849 *data_size=0; | 849 *data_size=0; |
850 return buf_size; | 850 return buf_size; |
851 } | 851 } |
852 | 852 |
853 tctx->dsp.vector_clipf(out, out, -32700./(1<<15), 32700./(1<<15), | |
854 avctx->channels * mtab->size); | |
855 | |
856 *data_size = mtab->size*avctx->channels*4; | 853 *data_size = mtab->size*avctx->channels*4; |
857 | 854 |
858 return buf_size; | 855 return buf_size; |
859 } | 856 } |
860 | 857 |