vf_tinterlace: leave harmless permissions alone.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 14 Aug 2012 16:50:23 +0000 (18:50 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Fri, 17 Aug 2012 16:26:42 +0000 (18:26 +0200)
libavfilter/vf_tinterlace.c

index 559f64b..5b03b81 100644 (file)
@@ -294,7 +294,7 @@ static int end_frame(AVFilterLink *inlink)
         break;
     case MODE_INTERLACEX2: /* re-interlace preserving image height, double frame rate */
         /* output current frame first */
-        out = avfilter_ref_buffer(cur, AV_PERM_READ);
+        out = avfilter_ref_buffer(cur, ~AV_PERM_WRITE);
         out->video->interlaced = 1;
 
         ff_start_frame(outlink, out);