1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 09:57:34 +00:00

make timestamps out of hot air

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23974 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2007-07-31 17:12:28 +00:00
parent e5935e91ce
commit 96f2f7d45f

View File

@ -781,6 +781,9 @@ static int encode_frame(struct vf_instance_s* vf, AVFrame *pic, double pts){
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));