[MPlayer-cvslog] CVS: main/libmpcodecs dec_video.c, 1.166, 1.167 dec_video.h, 1.16, 1.17
Michael Niedermayer CVS
syncmail at mplayerhq.hu
Wed Mar 22 00:09:54 CET 2006
CVS change done by Michael Niedermayer CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv23153/libmpcodecs
Modified Files:
dec_video.c dec_video.h
Log Message:
feed something (hopefully correct timestamps) into the video filter chain
Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/dec_video.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -r1.166 -r1.167
--- dec_video.c 21 Mar 2006 21:26:40 -0000 1.166
+++ dec_video.c 21 Mar 2006 23:09:52 -0000 1.167
@@ -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;
Index: dec_video.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/dec_video.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- dec_video.h 9 Feb 2006 14:07:55 -0000 1.16
+++ dec_video.h 21 Mar 2006 23:09:52 -0000 1.17
@@ -10,7 +10,7 @@
extern int init_video(sh_video_t *sh_video,char* codecname,char* vfm,int status);
extern void uninit_video(sh_video_t *sh_video);
-extern int decode_video(sh_video_t *sh_video,unsigned char *start,int in_size,int drop_frame);
+extern int decode_video(sh_video_t *sh_video,unsigned char *start,int in_size,int drop_frame, double pts);
extern int get_video_quality_max(sh_video_t *sh_video);
extern void set_video_quality(sh_video_t *sh_video,int quality);
More information about the MPlayer-cvslog
mailing list