[FFmpeg-cvslog] r18804 - in trunk: libavcodec/qcelpdata.h libavcodec/qcelpdec.c libavformat/asf.h

diego subversion
Wed May 13 01:40:22 CEST 2009


Author: diego
Date: Wed May 13 01:40:22 2009
New Revision: 18804

Log:
Fix bandwith vs. bandwiDth typo.

Modified:
   trunk/libavcodec/qcelpdata.h
   trunk/libavcodec/qcelpdec.c
   trunk/libavformat/asf.h

Modified: trunk/libavcodec/qcelpdata.h
==============================================================================
--- trunk/libavcodec/qcelpdata.h	Tue May 12 22:00:11 2009	(r18803)
+++ trunk/libavcodec/qcelpdata.h	Wed May 13 01:40:22 2009	(r18804)
@@ -557,6 +557,6 @@ static const double qcelp_rnd_fir_coefs[
  *
  * TIA/EIA/IS-733 2.4.3.3.6 6
  */
-#define QCELP_BANDWITH_EXPANSION_COEFF 0.9883
+#define QCELP_BANDWIDTH_EXPANSION_COEFF 0.9883
 
 #endif /* AVCODEC_QCELPDATA_H */

Modified: trunk/libavcodec/qcelpdec.c
==============================================================================
--- trunk/libavcodec/qcelpdec.c	Tue May 12 22:00:11 2009	(r18803)
+++ trunk/libavcodec/qcelpdec.c	Wed May 13 01:40:22 2009	(r18804)
@@ -597,7 +597,7 @@ static void apply_pitch_filters(QCELPCon
  * @param lspf line spectral pair frequencies
  * @param lpc linear predictive coding coefficients
  *
- * @note: bandwith_expansion_coeff could be precalculated into a table
+ * @note: bandwidth_expansion_coeff could be precalculated into a table
  *        but it seems to be slower on x86
  *
  * TIA/EIA/IS-733 2.4.3.3.5
@@ -605,7 +605,7 @@ static void apply_pitch_filters(QCELPCon
 static void lspf2lpc(const float *lspf, float *lpc)
 {
     double lsf[10];
-    double bandwith_expansion_coeff = QCELP_BANDWITH_EXPANSION_COEFF;
+    double bandwidth_expansion_coeff = QCELP_BANDWIDTH_EXPANSION_COEFF;
     int   i;
 
     for (i=0; i<10; i++)
@@ -615,8 +615,8 @@ static void lspf2lpc(const float *lspf, 
 
     for (i=0; i<10; i++)
     {
-        lpc[i] *= bandwith_expansion_coeff;
-        bandwith_expansion_coeff *= QCELP_BANDWITH_EXPANSION_COEFF;
+        lpc[i] *= bandwidth_expansion_coeff;
+        bandwidth_expansion_coeff *= QCELP_BANDWIDTH_EXPANSION_COEFF;
     }
 }
 

Modified: trunk/libavformat/asf.h
==============================================================================
--- trunk/libavformat/asf.h	Tue May 12 22:00:11 2009	(r18803)
+++ trunk/libavformat/asf.h	Wed May 13 01:40:22 2009	(r18804)
@@ -68,7 +68,7 @@ typedef struct {
                                  *   invalid if broadcasting */
     uint32_t max_pktsize;       /**< shall be the same as for min_pktsize
                                  *   invalid if broadcasting */
-    uint32_t max_bitrate;       /**< bandwith of stream in bps
+    uint32_t max_bitrate;       /**< bandwidth of stream in bps
                                  *   should be the sum of bitrates of the
                                  *   individual media streams */
 } ASFMainHeader;



More information about the ffmpeg-cvslog mailing list