summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_fli.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/demux_fli.c')
-rw-r--r--libmpdemux/demux_fli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmpdemux/demux_fli.c b/libmpdemux/demux_fli.c
index 09970fb86a..8cc0abc3d9 100644
--- a/libmpdemux/demux_fli.c
+++ b/libmpdemux/demux_fli.c
@@ -27,6 +27,7 @@ typedef struct _fli_frames_t {
// 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 @@ int demux_fli_fill_buffer(demuxer_t *demuxer){
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