git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
426d5c2
)
Make avfilter_ref_pic also handle removal of permissions for the caller.
author
Vitor Sessak
<vitor1001@gmail.com>
Fri, 15 Feb 2008 21:36:06 +0000
(21:36 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Fri, 15 Feb 2008 21:36:06 +0000
(21:36 +0000)
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
libavfilter/avfilter.c
patch
|
blob
|
history
diff --git
a/libavfilter/avfilter.c
b/libavfilter/avfilter.c
index
33b9b05
..
894e9d3
100644
(file)
--- 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;
}