changeset 23954:7d7f0c707be4

make timestamps out of hot air
author michael
date Tue, 31 Jul 2007 17:12:28 +0000
parents 5f3a46b4fb64
children c4c4712cebae
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Tue Jul 31 17:09:54 2007 +0000
+++ b/libmpcodecs/ve_lavc.c	Tue Jul 31 17:12:28 2007 +0000
@@ -781,6 +781,9 @@
     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));