[FFmpeg-cvslog] r20511 - in trunk/libavcodec: lsp.c lsp.h
vitor
subversion
Wed Nov 11 12:00:50 CET 2009
Author: vitor
Date: Wed Nov 11 12:00:50 2009
New Revision: 20511
Log:
Use doubles in ff_set_min_dist_lsf(). After this patch, AMR can use this
function with no change in output.
Modified:
trunk/libavcodec/lsp.c
trunk/libavcodec/lsp.h
Modified: trunk/libavcodec/lsp.c
==============================================================================
--- trunk/libavcodec/lsp.c Wed Nov 11 02:04:08 2009 (r20510)
+++ trunk/libavcodec/lsp.c Wed Nov 11 12:00:50 2009 (r20511)
@@ -47,7 +47,7 @@ void ff_acelp_reorder_lsf(int16_t* lsfq,
lsfq[lp_order-1] = FFMIN(lsfq[lp_order-1], lsfq_max);//Is warning required ?
}
-void ff_set_min_dist_lsf(float *lsf, float min_spacing, int size)
+void ff_set_min_dist_lsf(float *lsf, double min_spacing, int size)
{
int i;
float prev = 0.0;
Modified: trunk/libavcodec/lsp.h
==============================================================================
--- trunk/libavcodec/lsp.h Wed Nov 11 02:04:08 2009 (r20510)
+++ trunk/libavcodec/lsp.h Wed Nov 11 12:00:50 2009 (r20511)
@@ -50,7 +50,7 @@ void ff_acelp_reorder_lsf(int16_t* lsfq,
* @param min_spacing minimum distance between two consecutive lsf values
* @param size size of the lsf vector
*/
-void ff_set_min_dist_lsf(float *lsf, float min_spacing, int order);
+void ff_set_min_dist_lsf(float *lsf, double min_spacing, int order);
/**
* \brief Convert LSF to LSP
More information about the ffmpeg-cvslog
mailing list