[MPlayer-cvslog] r34516 - trunk/libmpdemux/demux_ogg.c

reimar subversion at mplayerhq.hu
Thu Jan 5 16:45:33 CET 2012


Author: reimar
Date: Thu Jan  5 16:45:33 2012
New Revision: 34516

Log:
Calculate Ogg timestamps as double instead of float.

Patch by Giorgio Vazzana (mywing81 gmail com).

Modified:
   trunk/libmpdemux/demux_ogg.c

Modified: trunk/libmpdemux/demux_ogg.c
==============================================================================
--- trunk/libmpdemux/demux_ogg.c	Thu Jan  5 16:41:59 2012	(r34515)
+++ trunk/libmpdemux/demux_ogg.c	Thu Jan  5 16:45:33 2012	(r34516)
@@ -257,7 +257,7 @@ static int demux_ogg_get_page_stream(ogg
 }
 
 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 @@ static int demux_ogg_add_packet(demux_st
     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 @@ static void demux_ogg_scan_stream(demuxe
         }
         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 @@ static void demux_ogg_seek(demuxer_t *de
     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;


More information about the MPlayer-cvslog mailing list