diff mpeg.c @ 463:696f41bc8784 libavformat

store index for seeking in the native timebase of each stream set correct timebase for nut merge mpeg-ts seeking with existing seeking code 10l fix in mpegts (27mhz vs. 90khz)
author michael
date Sun, 23 May 2004 16:26:12 +0000
parents 11d07f14b077
children 40069a91d1a0
line wrap: on
line diff
--- a/mpeg.c	Fri May 21 20:43:21 2004 +0000
+++ b/mpeg.c	Sun May 23 16:26:12 2004 +0000
@@ -1312,7 +1312,7 @@
         int i;
         for(i=0; i<s->nb_streams; i++){
             if(startcode == s->streams[i]->id) {
-                av_add_index_entry(s->streams[i], *ppos, dts*AV_TIME_BASE/90000, 0, 0 /* FIXME keyframe? */);
+                av_add_index_entry(s->streams[i], *ppos, dts, 0, 0 /* FIXME keyframe? */);
             }
         }
     }
@@ -1430,7 +1430,7 @@
     printf("pos=0x%llx dts=0x%llx %0.3f\n", pos, dts, dts / 90000.0);
 #endif
     *ppos = pos;
-    return dts*AV_TIME_BASE/90000;
+    return dts;
 }
 
 #ifdef CONFIG_ENCODERS