[FFmpeg-cvslog] r12069 - trunk/libavfilter/defaults.c
vitor
subversion
Fri Feb 15 22:59:50 CET 2008
Author: vitor
Date: Fri Feb 15 22:59:50 2008
New Revision: 12069
Log:
Revert braindead linked list of permissions
Commited in SoC by Bobby Bingham on 2007-08-17 22:44:03
Modified:
trunk/libavfilter/defaults.c
Modified: trunk/libavfilter/defaults.c
==============================================================================
--- trunk/libavfilter/defaults.c (original)
+++ trunk/libavfilter/defaults.c Fri Feb 15 22:59:50 2008
@@ -28,13 +28,6 @@ void avfilter_default_free_video_buffer(
av_free(pic);
}
-AVFilterPicRef *avfilter_next_get_video_buffer(AVFilterLink *link, int perms)
-{
- if(!link->dst->outputs[0])
- return NULL;
- return avfilter_get_video_buffer(link->dst->outputs[0], perms);
-}
-
/* TODO: set the buffer's priv member to a context structure for the whole
* filter chain. This will allow for a buffer pool instead of the constant
* alloc & free cycle currently implemented. */
@@ -48,9 +41,6 @@ AVFilterPicRef *avfilter_default_get_vid
ref->h = link->h;
ref->perms = perms;
- /* we always give the destination filter read access by default */
- avfilter_add_pic_perms(ref, link->dst, AV_PERM_READ);
-
pic->refcount = 1;
pic->format = link->format;
pic->free = avfilter_default_free_video_buffer;
@@ -72,7 +62,7 @@ void avfilter_default_start_frame(AVFilt
if(out) {
out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE);
out->outpic->pts = picref->pts;
- avfilter_start_frame(out, avfilter_ref_pic(out->outpic, out->dst, ~0));
+ avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0));
}
}
More information about the ffmpeg-cvslog
mailing list