vf_select: require AV_PERM_PRESERVE.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 14 Aug 2012 16:49:17 +0000 (18:49 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Fri, 17 Aug 2012 16:26:42 +0000 (18:26 +0200)
This is only necessary because of the poll_frame implementation.
Removing it altogether would be another solution.

libavfilter/vf_select.c

index db1b038..d47876b 100644 (file)
@@ -416,6 +416,7 @@ AVFilter avfilter_vf_select = {
     .inputs    = (const AVFilterPad[]) {{ .name             = "default",
                                           .type             = AVMEDIA_TYPE_VIDEO,
                                           .get_video_buffer = ff_null_get_video_buffer,
+                                          .min_perms        = AV_PERM_PRESERVE,
                                           .config_props     = config_input,
                                           .start_frame      = start_frame,
                                           .draw_slice       = draw_slice,