[FFmpeg-cvslog] r11980 - trunk/libavfilter/avfilter.c
vitor
subversion
Fri Feb 15 22:36:06 CET 2008
Author: vitor
Date: Fri Feb 15 22:36:06 2008
New Revision: 11980
Log:
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
Modified:
trunk/libavfilter/avfilter.c
Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c (original)
+++ trunk/libavfilter/avfilter.c Fri Feb 15 22:36:06 2008
@@ -73,10 +73,11 @@ void avfilter_default_end_frame(AVFilter
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;
}
More information about the ffmpeg-cvslog
mailing list