changeset 3221:2b36eede0b5b

pts support
author alex
date Fri, 30 Nov 2001 17:11:30 +0000
parents b35b40ade7e9
children 71a3d16f344f
files libmpdemux/demux_fli.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_fli.c	Fri Nov 30 16:59:02 2001 +0000
+++ b/libmpdemux/demux_fli.c	Fri Nov 30 17:11:30 2001 +0000
@@ -27,6 +27,7 @@
 //     1 = successfully read a packet
 int demux_fli_fill_buffer(demuxer_t *demuxer){
   fli_frames_t *frames = (fli_frames_t *)demuxer->priv;
+  sh_video_t *sh_video = demuxer->video->sh;
 
   // see if the end has been reached
   if (frames->current_frame == frames->num_frames)
@@ -39,9 +40,9 @@
   ds_read_packet(demuxer->video,
     demuxer->stream, 
     frames->frame_size[frames->current_frame],
-    0, /* not sure what pts is for */
+    frames->current_frame/sh_video->fps,
     frames->filepos[frames->current_frame],
-    0 /* what flags? */
+    0 /* what flags? -> demuxer.h (alex) */
   );
 
   // get the next frame ready