[zaptel-commits] kpfleming: branch mogorman/zaptel-1.2-transcoder r2030 - /team/mogorman/zapte...

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Tue Jan 30 15:34:43 MST 2007


Author: kpfleming
Date: Tue Jan 30 16:34:42 2007
New Revision: 2030

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2030
Log:
round cmdq sizes to 16 byte units

Modified:
    team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c

Modified: team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c
URL: http://svn.digium.com/view/zaptel/team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c?view=diff&rev=2030&r1=2029&r2=2030
==============================================================================
--- team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c (original)
+++ team/mogorman/zaptel-1.2-transcoder/wctc4xxp/base.c Tue Jan 30 16:34:42 2007
@@ -337,6 +337,8 @@
 	struct cmdq *smallest_seen = NULL;
 	size_t smallest_seen_size = MAX_PACKET_SIZE;
 	struct cmdq *entry;
+
+	size_needed = ((size_needed / 16) + 1) * 16;
 
 	if (size_needed > MAX_PACKET_SIZE)
 		return NULL;



More information about the zaptel-commits mailing list