Commit b484a2b6 authored by vitor's avatar vitor

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11980 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 200dc54d
...@@ -73,10 +73,11 @@ void avfilter_default_end_frame(AVFilterLink *link) ...@@ -73,10 +73,11 @@ void avfilter_default_end_frame(AVFilterLink *link)
link->cur_pic = NULL; link->cur_pic = NULL;
} }
AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref) AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref, int pmask)
{ {
AVFilterPicRef *ret = av_malloc(sizeof(AVFilterPicRef)); AVFilterPicRef *ret = av_malloc(sizeof(AVFilterPicRef));
memcpy(ret, ref, sizeof(AVFilterPicRef)); memcpy(ret, ref, sizeof(AVFilterPicRef));
ret->perms &= pmask;
ret->pic->refcount ++; ret->pic->refcount ++;
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment