changeset 9528:565015128767

10l (pp cant convert formats) fixes segfault
author michael
date Tue, 04 Mar 2003 22:48:37 +0000
parents 400e65bdf4f6
children 1992bd6a788e
files libmpcodecs/vf_pp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_pp.c	Tue Mar 04 14:59:59 2003 +0000
+++ b/libmpcodecs/vf_pp.c	Tue Mar 04 22:48:37 2003 +0000
@@ -54,7 +54,7 @@
     if(vf->priv->context) pp_free_context(vf->priv->context);
     vf->priv->context= pp_get_context(width, height, flags);
 
-    return vf_next_config(vf,width,height,d_width,d_height,voflags,vf->priv->outfmt);
+    return vf_next_config(vf,width,height,d_width,d_height,voflags,outfmt);
 }
 
 static void uninit(struct vf_instance_s* vf){
@@ -114,7 +114,7 @@
 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
     if(!(mpi->flags&MP_IMGFLAG_DIRECT)){
 	// no DR, so get a new image! hope we'll get DR buffer:
-	vf->priv->dmpi=vf_get_image(vf->next,vf->priv->outfmt,
+	vf->priv->dmpi=vf_get_image(vf->next,mpi->imgfmt,
 	    MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE|MP_IMGFLAG_PREFER_ALIGNED_STRIDE,
 //	    MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
 //	    mpi->w,mpi->h);