From 81a663f49edd265dc846ff3854579415cac1d5bb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 15 Aug 2014 21:31:59 +0200 Subject: Drop remaining unneeded != NULL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Clément Bœsch Signed-off-by: Michael Niedermayer --- libavfilter/libmpcodecs/vf_eq2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavfilter/libmpcodecs') diff --git a/libavfilter/libmpcodecs/vf_eq2.c b/libavfilter/libmpcodecs/vf_eq2.c index c9c3ff69f4..03568139f3 100644 --- a/libavfilter/libmpcodecs/vf_eq2.c +++ b/libavfilter/libmpcodecs/vf_eq2.c @@ -265,7 +265,7 @@ int put_image (vf_instance_t *vf, mp_image_t *src, double pts) dst = ff_vf_get_image (vf->next, src->imgfmt, MP_IMGTYPE_EXPORT, 0, src->w, src->h); for (i = 0; i < ((src->num_planes>1)?3:1); i++) { - if (eq2->param[i].adjust != NULL) { + if (eq2->param[i].adjust) { dst->planes[i] = eq2->buf[i]; dst->stride[i] = eq2->buf_w[i]; @@ -439,7 +439,7 @@ int query_format (vf_instance_t *vf, unsigned fmt) static void uninit (vf_instance_t *vf) { - if (vf->priv != NULL) { + if (vf->priv) { free (vf->priv->buf[0]); free (vf->priv); } @@ -482,7 +482,7 @@ int vf_open(vf_instance_t *vf, char *args) eq2->ggamma = 1.0; eq2->bgamma = 1.0; - if (args != NULL) { + if (args) { par[0] = 1.0; par[1] = 1.0; par[2] = 0.0; -- cgit v1.2.3