[asterisk-commits] branch 1.2 r11120 - /branches/1.2/translate.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Feb 25 12:54:40 MST 2006


Author: mattf
Date: Sat Feb 25 13:54:40 2006
New Revision: 11120

URL: http://svn.digium.com/view/asterisk?rev=11120&view=rev
Log:
Backport of fix to translation optimizations.  Thanks again file!

Modified:
    branches/1.2/translate.c

Modified: branches/1.2/translate.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/translate.c?rev=11120&r1=11119&r2=11120&view=diff
==============================================================================
--- branches/1.2/translate.c (original)
+++ branches/1.2/translate.c Sat Feb 25 13:54:40 2006
@@ -471,8 +471,10 @@
 		/* We will need to translate */
 		ast_mutex_lock(&list_lock);
 		for (y = 0; y < MAX_FORMAT; y++) {
-			if (!(cur & *dst))
+			if (!(cur & *dst)) {
+				cur = cur << 1;
 				continue;
+			}
 
 			for (x = 0; x < MAX_FORMAT; x++) {
 				if ((*srcs & (1 << x)) &&			/* x is a valid source format */



More information about the asterisk-commits mailing list