changeset 17845:0ebc8dfa136a

cosmetic, move stuff around
author ods15
date Mon, 13 Mar 2006 06:50:55 +0000
parents 194a848d907f
children 27e97a75ef70
files DOCS/tech/mpcf.txt
diffstat 1 files changed, 20 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/mpcf.txt	Mon Mar 13 03:46:25 2006 +0000
+++ b/DOCS/tech/mpcf.txt	Mon Mar 13 06:50:55 2006 +0000
@@ -125,6 +125,26 @@
     impossible to add new fields at the end of packets in the future
     in a compatible way]
 
+packet_header
+    startcode                           f(64)
+    forward_ptr                         v
+    if(forward_ptr > 4096)
+        header_checksum                 u(32)
+
+packet_footer
+    reserved_bytes
+    checksum                            u(32)
+
+reserved_headers
+    while(next_byte == 'N' && next_code !=      main_startcode
+                           && next_code !=    stream_startcode
+                           && next_code !=      info_startcode
+                           && next_code !=     index_startcode
+                           && next_code != syncpoint_startcode){
+        packet_header
+        packet_footer
+    }
+
         Headers:
 
 main header:
@@ -313,26 +333,6 @@
 above is a better loop in practice (not to mention its simpler)
 note, demuxers MUST be able to deal with new and unknown headers
 
-packet_header
-        startcode                               f(64)
-        forward_ptr                             v
-        if(forward_ptr > 4096)
-            header_checksum                     u(32)
-
-packet_footer
-        reserved_bytes
-        checksum                                u(32)
-
-reserved_headers
-    while(next_byte == 'N' && next_code !=      main_startcode
-                           && next_code !=    stream_startcode
-                           && next_code !=      info_startcode
-                           && next_code !=     index_startcode
-                           && next_code != syncpoint_startcode){
-        packet_header
-        packet_footer
-    }
-
 file:
     file_id_string
     while(!eof){