Mercurial > mplayer.hg
diff libmpcodecs/vf_lavc.c @ 17906:20aca9baf5d8
passing pts through the filter layer (lets see if pts or cola comes out at the end)
author | michael |
---|---|
date | Tue, 21 Mar 2006 21:26:42 +0000 |
parents | f0e7712385dc |
children | 8b52dad54b1d |
line wrap: on
line diff
--- a/libmpcodecs/vf_lavc.c Tue Mar 21 06:09:32 2006 +0000 +++ b/libmpcodecs/vf_lavc.c Tue Mar 21 21:26:42 2006 +0000 @@ -115,7 +115,7 @@ return vf_next_config(vf,width,height,d_width,d_height,flags,IMGFMT_MPEGPES); } -static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){ +static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ mp_image_t* dmpi; int out_size; AVFrame *pic= vf->priv->pic; @@ -143,7 +143,7 @@ dmpi->planes[0]=(unsigned char*)&vf->priv->pes; - return vf_next_put_image(vf,dmpi); + return vf_next_put_image(vf,dmpi, MP_NOPTS_VALUE); } //===========================================================================// @@ -203,7 +203,7 @@ } #if LIBAVCODEC_BUILD >= 4754 lavc_venc_context.time_base.num = 1000*1001; - lavc_venc_context.time_base.den = (p_fps<1.0) ? 0 : (p_fps * lavc_venc_context.time_base.num); + lavc_venc_context.time_base.den = (p_fps<1.0) ? 1000*1001*25 : (p_fps * lavc_venc_context.time_base.num); #else #if LIBAVCODEC_BUILD >= 4662 lavc_venc_context.frame_rate_base = 1000*1001;