[NUT-devel] r20926 - trunk/DOCS/tech/nut.txt

ods15 subversion at mplayerhq.hu
Tue Nov 14 18:03:37 CET 2006


Author: ods15
Date: Tue Nov 14 18:03:33 2006
New Revision: 20926

Modified:
   trunk/DOCS/tech/nut.txt

Log:
allow info packets to appear in mid-stream, outside of main headers.
these SHOULD NOT appear in non-realtime-streams


Modified: trunk/DOCS/tech/nut.txt
==============================================================================
--- trunk/DOCS/tech/nut.txt	(original)
+++ trunk/DOCS/tech/nut.txt	Tue Nov 14 18:03:33 2006
@@ -187,11 +187,15 @@
             packet_header, index_packet, packet_footer
         }
         if (!eof) while(next_code != main_startcode){
-            if(next_code == syncpoint_startcode){
-                packet_header, syncpoint, packet_footer
-            }
-            frame
+            packet_header, syncpoint, packet_footer
+            do{
+                frame
+            }while(next_code == framecode);
             reserved_headers
+            while(next_code == info_startcode){
+                packet_header, info_packet, packet_footer
+                reserved_headers
+            }
         }
     }
 
@@ -883,9 +887,15 @@
 Info:
 -----
 
-If a info packet is stored anywhere then a muxer MUST also store an identical
+All info packets stored after a main header set MUST also have an identical
 info packet after every main-stream-header set
 
+All info packets not stored after a main header set MUST have
+chapter_id!=0 .
+
+Info packets SHOULD be written after main header sets in non realtime
+streams.
+
 If a demuxer has seen several info packets with the same chapter_id and
 stream_id then it MUST ignore all but the one with the highest position in
 the file



More information about the NUT-devel mailing list