[Mplayer-cvslog] CVS: main/libmpcodecs vf_spp.c,1.11,1.12

Michael Niedermayer CVS michael at mplayerhq.hu
Tue Oct 28 21:50:29 CET 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv27834

Modified Files:
	vf_spp.c 
Log Message:
skip filter if codec doesnt provide the QP array and user didnt force a QP (fixes diegos segfault)
its quite scary how many 10l bugs the spp filter had ...


Index: vf_spp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_spp.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- vf_spp.c	28 Oct 2003 14:00:07 -0000	1.11
+++ vf_spp.c	28 Oct 2003 20:49:33 -0000	1.12
@@ -371,9 +371,11 @@
         
         vf->priv->mpeg2= mpi->qscale_type;
 	if(vf->priv->log2_count || !(mpi->flags&MP_IMGFLAG_DIRECT)){
+	    if(mpi->qscale || vf->priv->qp){
 		filter(vf->priv, dmpi->planes[0], mpi->planes[0], dmpi->stride[0], mpi->stride[0], mpi->w, mpi->h, mpi->qscale, mpi->qstride, 1);
 		filter(vf->priv, dmpi->planes[1], mpi->planes[1], dmpi->stride[1], mpi->stride[1], mpi->w>>mpi->chroma_x_shift, mpi->h>>mpi->chroma_y_shift, mpi->qscale, mpi->qstride, 0);
 		filter(vf->priv, dmpi->planes[2], mpi->planes[2], dmpi->stride[2], mpi->stride[2], mpi->w>>mpi->chroma_x_shift, mpi->h>>mpi->chroma_y_shift, mpi->qscale, mpi->qstride, 0);
+	    }
 	}
         vf_clone_mpi_attributes(dmpi, mpi);
 



More information about the MPlayer-cvslog mailing list