[NUT-devel] [nut]: r189 - trunk/libnut/muxer.c

ods15 subversion at mplayerhq.hu
Mon Nov 6 09:54:38 CET 2006


Author: ods15
Date: Mon Nov  6 09:54:38 2006
New Revision: 189

Modified:
   trunk/libnut/muxer.c

Log:
cosmetic relocate


Modified: trunk/libnut/muxer.c
==============================================================================
--- trunk/libnut/muxer.c	(original)
+++ trunk/libnut/muxer.c	Mon Nov  6 09:54:38 2006
@@ -66,16 +66,6 @@
 	return bc;
 }
 
-static int add_timebase(nut_context_t * nut, nut_timebase_t tb) {
-	int i;
-	for (i = 0; i < nut->timebase_count; i++) if (compare_ts(nut, 1, nut->tb[i], 1, tb) == 0) break;
-	if (i == nut->timebase_count) {
-		nut->tb = nut->alloc->realloc(nut->tb, sizeof(nut_timebase_t) * ++nut->timebase_count);
-		nut->tb[i] = tb;
-	}
-	return i;
-}
-
 static void put_bytes(output_buffer_t * bc, int count, uint64_t val) {
 	ready_write_buf(bc, count);
 	for(count--; count >= 0; count--){
@@ -456,6 +446,16 @@
 	return size;
 }
 
+static int add_timebase(nut_context_t * nut, nut_timebase_t tb) {
+	int i;
+	for (i = 0; i < nut->timebase_count; i++) if (compare_ts(nut, 1, nut->tb[i], 1, tb) == 0) break;
+	if (i == nut->timebase_count) {
+		nut->tb = nut->alloc->realloc(nut->tb, sizeof(nut_timebase_t) * ++nut->timebase_count);
+		nut->tb[i] = tb;
+	}
+	return i;
+}
+
 static void check_header_repetition(nut_context_t * nut) {
 	if (bctello(nut->o) >= (1 << 23)) {
 		int i; // ### magic value for header repetition



More information about the NUT-devel mailing list