Commit d9138836 authored by Clément Bœsch's avatar Clément Bœsch

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.
parent e2fc6a01
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment