From 4d5be986f0f84d38b4859e04eba2ca0381c6f8c4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 14 Nov 2006 13:19:51 +0000 Subject: index less seeking in O(log n) time Originally committed as revision 7056 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/nut.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libavformat/nut.h') diff --git a/libavformat/nut.h b/libavformat/nut.h index af42a57720..b8e8242526 100644 --- a/libavformat/nut.h +++ b/libavformat/nut.h @@ -50,9 +50,10 @@ typedef enum{ }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 @@ typedef struct { unsigned int time_base_count; int64_t last_syncpoint_pos; AVRational *time_base; + struct AVTreeNode *syncpoints; } NUTContext; -- cgit v1.2.3