lavfi: fix erroneous use of AV_PERM_PRESERVE in ff_inplace_start_frame.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 14 Aug 2012 16:52:43 +0000 (18:52 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Fri, 17 Aug 2012 16:26:38 +0000 (18:26 +0200)
ff_inplace_start_frame looks useless anyway.

libavfilter/video.c

index 5a3bbb9..86332bc 100644 (file)
@@ -173,7 +173,7 @@ int ff_inplace_start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
     AVFilterBufferRef *outpicref = NULL, *for_next_filter;
     int ret = 0;
 
-    if ((inpicref->perms & AV_PERM_WRITE) && !(inpicref->perms & AV_PERM_PRESERVE)) {
+    if (inpicref->perms & AV_PERM_WRITE) {
         outpicref = avfilter_ref_buffer(inpicref, ~0);
         if (!outpicref)
             return AVERROR(ENOMEM);