diff libmpdemux/demuxer.h @ 31558:a3a50df246f8

Move the subtitle pts handling code to demuxer.c This also fixes endpts using first->endpts instead of current->endpts and the move should avoid missing such fixes in the future by having all related code in one place.
author reimar
date Fri, 02 Jul 2010 21:14:42 +0000
parents a295c59e1a48
children b429f2102412
line wrap: on
line diff
--- a/libmpdemux/demuxer.h	Fri Jul 02 19:59:02 2010 +0000
+++ b/libmpdemux/demuxer.h	Fri Jul 02 21:14:42 2010 +0000
@@ -396,7 +396,8 @@
 void ds_free_packs(demux_stream_t *ds);
 int ds_get_packet(demux_stream_t *ds,unsigned char **start);
 int ds_get_packet_pts(demux_stream_t *ds, unsigned char **start, double *pts);
-int ds_get_packet_sub(demux_stream_t *ds,unsigned char **start);
+int ds_get_packet_sub(demux_stream_t *ds,unsigned char **start,
+                      double *pts, double *endpts);
 double ds_get_next_pts(demux_stream_t *ds);
 int ds_parse(demux_stream_t *sh, uint8_t **buffer, int *len, double pts, off_t pos);
 void ds_clear_parser(demux_stream_t *sh);