vf_hqdn3d: fix permissions
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 28 Nov 2012 17:05:09 +0000 (18:05 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 28 Nov 2012 17:05:09 +0000 (18:05 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_hqdn3d.c

index f3d445c..92e0b44 100644 (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 {