[FFmpeg-cvslog] vf_idet: fix permissions.
Nicolas George
git at videolan.org
Fri Aug 17 18:44:18 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Aug 14 18:45:30 2012 +0200| [5ec6ae91ba7206b48994d15be476c3e8a0b512b7] | committer: Nicolas George
vf_idet: fix permissions.
Only write needs to be removed, other can be left.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5ec6ae91ba7206b48994d15be476c3e8a0b512b7
---
libavfilter/vf_idet.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index 02d073d..938f4a0 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}},
More information about the ffmpeg-cvslog
mailing list