[MPlayer-cvslog] r23974 - trunk/libmpcodecs/ve_lavc.c
michael
subversion at mplayerhq.hu
Tue Jul 31 19:12:28 CEST 2007
Author: michael
Date: Tue Jul 31 19:12:28 2007
New Revision: 23974
Log:
make timestamps out of hot air
Modified:
trunk/libmpcodecs/ve_lavc.c
Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c (original)
+++ trunk/libmpcodecs/ve_lavc.c Tue Jul 31 19:12:28 2007
@@ -781,6 +781,9 @@ static int encode_frame(struct vf_instan
int out_size;
double dts;
+ if(pts == MP_NOPTS_VALUE)
+ pts= lavc_venc_context->frame_number * av_q2d(lavc_venc_context->time_base);
+
if(pic){
#if 0
pic->opaque= malloc(sizeof(pts));
More information about the MPlayer-cvslog
mailing list