changeset 34428:438e8d189753

Calculate Ogg timestamps as double instead of float. Patch by Giorgio Vazzana (mywing81 gmail com).
author reimar
date Thu, 05 Jan 2012 15:45:33 +0000
parents cbee80faf0aa
children 9becec2ec9bc
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Thu Jan 05 15:41:59 2012 +0000
+++ b/libmpdemux/demux_ogg.c	Thu Jan 05 15:45:33 2012 +0000
@@ -257,7 +257,7 @@
 }
 
 static unsigned char *demux_ogg_read_packet(ogg_stream_t *os, ogg_packet *pack,
-                                            float *pts, int *flags,
+                                            double *pts, int *flags,
                                             int samplesize)
 {
     unsigned char *data = pack->packet;
@@ -479,7 +479,7 @@
     demuxer_t *d = ds->demuxer;
     demux_packet_t *dp;
     unsigned char *data;
-    float pts = 0;
+    double pts = 0;
     int flags = 0;
     int samplesize = 1;
 
@@ -608,7 +608,7 @@
         }
         p = 0;
         while (ogg_stream_packetout(oss, &op) == 1) {
-            float pts;
+            double pts;
             int flags;
 
             demux_ogg_read_packet(os, &op, &pts, &flags, samplesize);
@@ -1419,7 +1419,7 @@
     off_t pos, old_pos;
     int np;
     int is_gp_valid;
-    float pts;
+    double pts;
     int is_keyframe;
     int samplesize = 1;
     ogg_int64_t granulepos_orig;