changeset 13232:4b7b0cb1d6f3

hue filter bugfix by ("James Crowson" <jbcrowso at ncsu dot edu>)
author michael
date Thu, 02 Sep 2004 19:48:41 +0000
parents a5f0ecc05e41
children 3b85939d9f0a
files libmpcodecs/vf_hue.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_hue.c	Thu Sep 02 19:33:17 2004 +0000
+++ b/libmpcodecs/vf_hue.c	Thu Sep 02 19:48:41 2004 +0000
@@ -76,7 +76,7 @@
 		vf->priv->buf[1] = malloc(mpi->stride[2]*mpi->h >> mpi->chroma_y_shift);
 	}
 	
-	if (vf->priv->hue == 0){
+	if (vf->priv->hue == 0 && vf->priv->saturation == 1){
 		dmpi->planes[1] = mpi->planes[1];
 		dmpi->planes[2] = mpi->planes[2];
 	}else {