Browse Source

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
tags/v0.5
Vitor Sessak 18 years ago
parent
commit
efb36bfc21
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavfilter/avfilter.c

+ 2
- 1
libavfilter/avfilter.c View File

@@ -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;
}


Loading…
Cancel
Save