[SCM] libav/experimental: Make avfilter_ref_pic also handle removal of permissions for the caller.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:14:20 UTC 2013


The following commit has been merged in the experimental branch:
commit efb36bfc219245182135dfd696bdf173a2cb601b
Author: Vitor Sessak <vitor1001 at gmail.com>
Date:   Fri Feb 15 21:36:06 2008 +0000

    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

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 33b9b05..894e9d3 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;
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list