aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-14 18:45:30 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-08-17 18:26:41 +0200
commit5ec6ae91ba7206b48994d15be476c3e8a0b512b7 (patch)
tree5ccab5baa92b7f958319a893de5871e6ace0d61d
parent3bc644e044f27ea2fbb66d24f713440260cc417e (diff)
downloadffmpeg-5ec6ae91ba7206b48994d15be476c3e8a0b512b7.tar.gz
vf_idet: fix permissions.
Only write needs to be removed, other can be left.
-rw-r--r--libavfilter/vf_idet.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index 02d073d492..938f4a0d52 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -184,9 +184,9 @@ static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
return 0;
if (!idet->prev)
- idet->prev = avfilter_ref_buffer(idet->cur, AV_PERM_READ);
+ idet->prev = avfilter_ref_buffer(idet->cur, ~0);
- return ff_start_frame(ctx->outputs[0], avfilter_ref_buffer(idet->cur, AV_PERM_READ));
+ return ff_start_frame(ctx->outputs[0], avfilter_ref_buffer(idet->cur, ~0));
}
static int end_frame(AVFilterLink *link)
@@ -327,11 +327,12 @@ AVFilter avfilter_vf_idet = {
.start_frame = start_frame,
.draw_slice = null_draw_slice,
.end_frame = end_frame,
- .rej_perms = AV_PERM_REUSE2, },
+ .min_perms = AV_PERM_PRESERVE },
{ .name = NULL}},
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
+ .rej_perms = AV_PERM_WRITE,
.poll_frame = poll_frame,
.request_frame = request_frame, },
{ .name = NULL}},