[NUT-devel] r62 - trunk/libnut

ods15 at mplayerhq.hu ods15 at mplayerhq.hu
Sun Feb 12 18:56:55 CET 2006


Author: ods15
Date: 2006-02-12 18:56:55 +0100 (Sun, 12 Feb 2006)
New Revision: 62

Modified:
   trunk/libnut/demuxer.c
   trunk/libnut/muxer.c
Log:
Sync to spec, implicit 'N' frame code


Modified: trunk/libnut/demuxer.c
===================================================================
--- trunk/libnut/demuxer.c	2006-02-11 17:20:03 UTC (rev 61)
+++ trunk/libnut/demuxer.c	2006-02-12 17:56:55 UTC (rev 62)
@@ -240,7 +240,11 @@
 		}
 
 		for(j = 0; j < count && i < 256; j++, i++) {
-			assert(i != 'N' || flag == INVALID_FLAG);
+			if (i == 'N') {
+				nut->ft[i].flags = INVALID_FLAG;
+				j--;
+				continue;
+			}
 			nut->ft[i].flags = flag;
 			nut->ft[i].stream_flags = sflag;
 			nut->ft[i].stream_plus1 = stream;

Modified: trunk/libnut/muxer.c
===================================================================
--- trunk/libnut/muxer.c	2006-02-11 17:20:03 UTC (rev 61)
+++ trunk/libnut/muxer.c	2006-02-12 17:56:55 UTC (rev 62)
@@ -22,9 +22,7 @@
 	  {    0,      5,     1,   1, 673,      2,  672,     0 }, // used 862 times
 	  {    0,      5,     1,   1, 769,      2,  768,     0 }, // used 433 times
 	  {    0,      5,     1,   1, 961,      2,  960,     0 }, // used 191 times
-	  {    1,      7,     0,   2, 104,      1,    0,    64 }, // "1.2.0" => 14187
-	  {    4,      3,     0,   0,   1,      0,    0,     0 }, // invalid 'N'
-	  {    1,      5,     0,   2, 104,      1,   64,     0 },
+	  {    1,      4,     0,   2, 104,      1,    0,     0 }, // "1.2.0" => 14187
 	  {    1,      4,     0,  -1,  42,      1,    0,     0 }, // "1.-1.0" => 5707
 	  {    1,      4,     0,   1,  83,      1,    0,     0 }, // "1.1.0" => 11159
 	  {    1,      4,     1,   1,  11,      1,    0,     0 }, // "1.1.1" => 1409
@@ -315,7 +313,11 @@
 		else count = mul - size;
 
 		for(j = 0; j < count && i < 256; j++, i++) {
-			assert(i != 'N' || flag == INVALID_FLAG);
+			if (i == 'N') {
+				nut->ft[i].flags = INVALID_FLAG;
+				j--;
+				continue;
+			}
 			nut->ft[i].flags = flag;
 			nut->ft[i].stream_flags = sflag;
 			nut->ft[i].stream_plus1 = stream;




More information about the NUT-devel mailing list