summaryrefslogtreecommitdiff
path: root/libavfilter/vf_fps.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-14 18:45:00 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-08-17 18:26:41 +0200
commit3bc644e044f27ea2fbb66d24f713440260cc417e (patch)
treed55d0472f64d4c9920eec744bc285d553b39c607 /libavfilter/vf_fps.c
parent738fab17ead04b7d8fc34359747a0ea3989afdfa (diff)
downloadffmpeg-3bc644e044f27ea2fbb66d24f713440260cc417e.tar.gz
vf_fps: fix permissions.
Diffstat (limited to 'libavfilter/vf_fps.c')
-rw-r--r--libavfilter/vf_fps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index 86e173bafc..25d72428ab 100644
--- a/libavfilter/vf_fps.c
+++ b/libavfilter/vf_fps.c
@@ -231,7 +231,7 @@ static int end_frame(AVFilterLink *inlink)
/* duplicate the frame if needed */
if (!av_fifo_size(s->fifo) && i < delta - 1) {
- AVFilterBufferRef *dup = avfilter_ref_buffer(buf_out, AV_PERM_READ);
+ AVFilterBufferRef *dup = avfilter_ref_buffer(buf_out, ~0);
av_log(ctx, AV_LOG_DEBUG, "Duplicating frame.\n");
if (dup)
@@ -289,12 +289,14 @@ AVFilter avfilter_vf_fps = {
.inputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
+ .min_perms = AV_PERM_READ | AV_PERM_PRESERVE,
.start_frame = null_start_frame,
.draw_slice = null_draw_slice,
.end_frame = end_frame, },
{ .name = NULL}},
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
+ .rej_perms = AV_PERM_WRITE,
.request_frame = request_frame,
.config_props = config_props},
{ .name = NULL}},