Browse Source

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.
tags/n1.1
Clément Bœsch 12 years ago
parent
commit
d91388367f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_gradfun.c

+ 1
- 1
libavfilter/vf_gradfun.c View File

@@ -189,7 +189,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
AVFilterBufferRef *out; AVFilterBufferRef *out;
int p, direct = 0; int p, direct = 0;


if ((in->perms & AV_PERM_WRITE) && !(in->perms & AV_PERM_PRESERVE)) {
if (in->perms & AV_PERM_WRITE) {
direct = 1; direct = 1;
out = in; out = in;
} else { } else {


Loading…
Cancel
Save