vf_hqdn3d: fix permissions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-11-28 18:05:09 +01:00
parent 46a4e72bc5
commit ed547e2ce5

View File

@ -329,7 +329,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
AVFilterBufferRef *out;
int direct, c;
if ((in->perms & AV_PERM_WRITE) && !(in->perms & AV_PERM_PRESERVE)) {
if (in->perms & AV_PERM_WRITE) {
direct = 1;
out = in;
} else {