Mercurial > mplayer.hg
comparison libmpcodecs/vf_fame.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 | 6ff3379a0862 |
children | bcd805923554 |
comparison
equal
deleted
inserted
replaced
17905:433494f162a9 | 17906:20aca9baf5d8 |
---|---|
43 fame_init(vf->priv->ctx,&vf->priv->params,vf->priv->outbuf,vf->priv->outbuf_size); | 43 fame_init(vf->priv->ctx,&vf->priv->params,vf->priv->outbuf,vf->priv->outbuf_size); |
44 | 44 |
45 return vf_next_config(vf,width,height,d_width,d_height,flags,IMGFMT_MPEGPES); | 45 return vf_next_config(vf,width,height,d_width,d_height,flags,IMGFMT_MPEGPES); |
46 } | 46 } |
47 | 47 |
48 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){ | 48 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ |
49 fame_yuv_t yuv; | 49 fame_yuv_t yuv; |
50 mp_image_t *dmpi; | 50 mp_image_t *dmpi; |
51 int out_size; | 51 int out_size; |
52 | 52 |
53 yuv.w=mpi->width; | 53 yuv.w=mpi->width; |
73 vf->priv->pes.id=0x1E0; | 73 vf->priv->pes.id=0x1E0; |
74 vf->priv->pes.timestamp=-1; // dunno | 74 vf->priv->pes.timestamp=-1; // dunno |
75 | 75 |
76 dmpi->planes[0]=(void*) &vf->priv->pes; | 76 dmpi->planes[0]=(void*) &vf->priv->pes; |
77 | 77 |
78 return vf_next_put_image(vf,dmpi); | 78 return vf_next_put_image(vf,dmpi, MP_NOPTS_VALUE); |
79 } | 79 } |
80 | 80 |
81 //===========================================================================// | 81 //===========================================================================// |
82 | 82 |
83 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ | 83 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ |