# HG changeset patch # User reimar # Date 1325778333 0 # Node ID 438e8d189753636e4400154f0c889d4fa2b11ef9 # Parent cbee80faf0aa12ec85d7e1496550234ca6915cdf Calculate Ogg timestamps as double instead of float. Patch by Giorgio Vazzana (mywing81 gmail com). diff -r cbee80faf0aa -r 438e8d189753 libmpdemux/demux_ogg.c --- 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;