diff libmpcodecs/dec_video.c @ 17910:5ae29dc47c17

feed something (hopefully correct timestamps) into the video filter chain
author michael
date Tue, 21 Mar 2006 23:09:52 +0000
parents 20aca9baf5d8
children 11d7992b37cf
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c	Tue Mar 21 23:06:09 2006 +0000
+++ b/libmpcodecs/dec_video.c	Tue Mar 21 23:09:52 2006 +0000
@@ -304,7 +304,7 @@
 
 extern int vo_directrendering;
 
-int decode_video(sh_video_t *sh_video,unsigned char *start,int in_size,int drop_frame){
+int decode_video(sh_video_t *sh_video,unsigned char *start,int in_size,int drop_frame, double pts){
 vf_instance_t* vf;
 mp_image_t *mpi=NULL;
 unsigned int t=GetTimer();
@@ -336,7 +336,7 @@
 
 //vo_draw_image(video_out,mpi);
 vf=sh_video->vfilter;
-ret = vf->put_image(vf,mpi, MP_NOPTS_VALUE); // apply video filters and call the leaf vo/ve
+ret = vf->put_image(vf,mpi, pts); // apply video filters and call the leaf vo/ve
 if(ret>0) vf->control(vf,VFCTRL_DRAW_OSD,NULL);
 
     t2=GetTimer()-t2;