[svn-commits] tilghman: branch 1.4 r269960 - /branches/1.4/main/frame.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 11 13:23:10 CDT 2010


Author: tilghman
Date: Fri Jun 11 13:23:05 2010
New Revision: 269960

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=269960
Log:
For SpeeX, 0 bits remaining is valid and does not need an emitted warning.

(closes issue #15762)
 Reported by: nblasgen
 Patches: 
       issue15672.patch uploaded by pabelanger (license 224)
 Tested by: nblasgen

Modified:
    branches/1.4/main/frame.c

Modified: branches/1.4/main/frame.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/frame.c?view=diff&rev=269960&r1=269959&r2=269960
==============================================================================
--- branches/1.4/main/frame.c (original)
+++ branches/1.4/main/frame.c Fri Jun 11 13:23:05 2010
@@ -1451,7 +1451,9 @@
 		}
 		bit += off;
 
-		if ((len * 8 - bit) < 5) {
+		if ((len * 8 - bit) == 0) {
+			break;
+		} else if ((len * 8 - bit) < 5) {
 			ast_log(LOG_WARNING, "Not enough bits remaining after wide band for speex samples.\n");
 			break;
 		}




More information about the svn-commits mailing list