changeset 10517:5317dff91b48 libavcodec

Use doubles in ff_set_min_dist_lsf(). After this patch, AMR can use this function with no change in output.
author vitor
date Wed, 11 Nov 2009 11:00:50 +0000
parents f59203839b77
children d7ac0d3ddd95
files lsp.c lsp.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lsp.c	Wed Nov 11 01:04:08 2009 +0000
+++ b/lsp.c	Wed Nov 11 11:00:50 2009 +0000
@@ -47,7 +47,7 @@
     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;
--- a/lsp.h	Wed Nov 11 01:04:08 2009 +0000
+++ b/lsp.h	Wed Nov 11 11:00:50 2009 +0000
@@ -50,7 +50,7 @@
  * @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