# HG changeset patch # User arpi # Date 1027183111 0 # Node ID cb1180ccac76359a6104faaa42f2dde413f619f3 # Parent d4db17f7271a5da05e19595ada1ec93029e7b12d DR1+IPB support (works only with ffmpeg12, as libmpeg2 doesn't accept stride) diff -r d4db17f7271a -r cb1180ccac76 libmpcodecs/vf_expand.c --- a/libmpcodecs/vf_expand.c Sat Jul 20 16:27:17 2002 +0000 +++ b/libmpcodecs/vf_expand.c Sat Jul 20 16:38:31 2002 +0000 @@ -181,7 +181,7 @@ // codec -copy-> expand -copy-> vo (worst case) static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ - if(mpi->type==MP_IMGTYPE_IPB) return; // not yet working +// if(mpi->type==MP_IMGTYPE_IPB) return; // not yet working #ifdef OSD_SUPPORT if(vf->priv->osd && (mpi->flags&MP_IMGFLAG_PRESERVE)){ // check if we have to render osd! @@ -213,11 +213,13 @@ mpi->stride[0]=vf->priv->dmpi->stride[0]; mpi->width=vf->priv->dmpi->width; mpi->flags|=MP_IMGFLAG_DIRECT; + mpi->priv=(void*)vf->priv->dmpi; } } static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ if(mpi->flags&MP_IMGFLAG_DIRECT){ + vf->priv->dmpi=mpi->priv; #ifdef OSD_SUPPORT if(vf->priv->osd) draw_osd(vf,mpi->w,mpi->h); #endif