mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +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:
parent
e5935e91ce
commit
96f2f7d45f
@ -781,6 +781,9 @@ static int encode_frame(struct vf_instance_s* vf, AVFrame *pic, double pts){
|
|||||||
int out_size;
|
int out_size;
|
||||||
double dts;
|
double dts;
|
||||||
|
|
||||||
|
if(pts == MP_NOPTS_VALUE)
|
||||||
|
pts= lavc_venc_context->frame_number * av_q2d(lavc_venc_context->time_base);
|
||||||
|
|
||||||
if(pic){
|
if(pic){
|
||||||
#if 0
|
#if 0
|
||||||
pic->opaque= malloc(sizeof(pts));
|
pic->opaque= malloc(sizeof(pts));
|
||||||
|
Loading…
Reference in New Issue
Block a user