From d91388367fa64b98a09b45e2b7fb8435a62b7609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Mon, 3 Dec 2012 20:38:27 +0100 Subject: [PATCH] lavfi/gradfun: remove check for AV_PERM_PRESERVE. This check does not make sense in this context, see doc/filter_design.txt for details about the usage of such flag. --- libavfilter/vf_gradfun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index 260a44b6e5..32d8796071 100644 --- a/libavfilter/vf_gradfun.c +++ b/libavfilter/vf_gradfun.c @@ -189,7 +189,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in) AVFilterBufferRef *out; int p, direct = 0; - if ((in->perms & AV_PERM_WRITE) && !(in->perms & AV_PERM_PRESERVE)) { + if (in->perms & AV_PERM_WRITE) { direct = 1; out = in; } else {