vf_fieldorder: require write permissions
authorAnton Khirnov <anton@khirnov.net>
Tue, 27 Nov 2012 07:59:55 +0000 (08:59 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 28 Nov 2012 07:50:24 +0000 (08:50 +0100)
This filter modifies the input frame.

libavfilter/vf_fieldorder.c

index e814785..5f0cc3b 100644 (file)
@@ -184,7 +184,7 @@ static const AVFilterPad avfilter_vf_fieldorder_inputs[] = {
         .config_props     = config_input,
         .get_video_buffer = get_video_buffer,
         .filter_frame     = filter_frame,
-        .min_perms        = AV_PERM_READ,
+        .min_perms        = AV_PERM_READ | AV_PERM_WRITE,
         .rej_perms        = AV_PERM_REUSE2 | AV_PERM_PRESERVE,
     },
     { NULL }