[NUT-devel] [nut]: r265 - trunk/libnut/framecode.c

ods15 subversion at mplayerhq.hu
Fri Nov 24 08:24:01 CET 2006


Author: ods15
Date: Fri Nov 24 08:24:00 2006
New Revision: 265

Modified:
   trunk/libnut/framecode.c

Log:
Small fix for framecode consume generation


Modified: trunk/libnut/framecode.c
==============================================================================
--- trunk/libnut/framecode.c	(original)
+++ trunk/libnut/framecode.c	Fri Nov 24 08:24:00 2006
@@ -82,8 +82,10 @@
 	}
 
 	for (i = 0; i < stream_count; i++) if (consume[i]) tot_con++;
+
+	if (tot_con) tot_con = (254 - (n+m))/tot_con; // 256 - 'N' - 0xFF invalids
 	if (tot_con) for (i = 0; i < stream_count; i++) {
-		int al = (254 - (n+m))/tot_con; // 256 - 'N' - 0xFF invalids
+		int al = tot_con;
 		switch (consume[i]) {
 		case e_consume_none:
 			break;



More information about the NUT-devel mailing list