diff nut.h @ 1500:2ac9e4f39a67 libavformat

index less seeking in O(log n) time
author michael
date Tue, 14 Nov 2006 13:19:51 +0000
parents 56fe078ffc27
children fe46e04555a5
line wrap: on
line diff
--- a/nut.h	Tue Nov 14 06:02:15 2006 +0000
+++ b/nut.h	Tue Nov 14 13:19:51 2006 +0000
@@ -50,9 +50,10 @@
 }flag_t;
 
 typedef struct {
-    uint32_t pos; //64gb limit if div16 (change this to 64 if thats too little)
-    uint64_t global_key_pts;
-    uint32_t back_ptr_div16; //is stored /16
+    uint64_t pos;
+    uint64_t back_ptr;
+//    uint64_t global_key_pts;
+    int64_t ts;
 } syncpoint_t;
 
 typedef struct {
@@ -85,6 +86,7 @@
     unsigned int time_base_count;
     int64_t last_syncpoint_pos;
     AVRational *time_base;
+    struct AVTreeNode *syncpoints;
 } NUTContext;