aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-02-15 21:36:06 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-02-15 21:36:06 +0000
commitefb36bfc219245182135dfd696bdf173a2cb601b (patch)
tree4b5fbe02c11c7465a76daba0ae656b0937c1a8b9 /libavfilter/avfilter.c
parent426d5c252fb223c3093e983b5ca2c189ba6631ae (diff)
downloadffmpeg-efb36bfc219245182135dfd696bdf173a2cb601b.tar.gz
Make avfilter_ref_pic also handle removal of permissions for the caller.
Commited in SoC by Bobby Bingham on 2007-07-08 16:14:49 Originally committed as revision 11980 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 33b9b05cab..894e9d3374 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -73,10 +73,11 @@ void avfilter_default_end_frame(AVFilterLink *link)
link->cur_pic = NULL;
}
-AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref)
+AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref, int pmask)
{
AVFilterPicRef *ret = av_malloc(sizeof(AVFilterPicRef));
memcpy(ret, ref, sizeof(AVFilterPicRef));
+ ret->perms &= pmask;
ret->pic->refcount ++;
return ret;
}