Commited in SoC by Bobby Bingham on 2007-08-17 22:44:03
Originally committed as revision 12069 to svn://svn.ffmpeg.org/ffmpeg/trunk
... | ... |
@@ -28,13 +28,6 @@ void avfilter_default_free_video_buffer(AVFilterPic *pic) |
28 | 28 |
av_free(pic); |
29 | 29 |
} |
30 | 30 |
|
31 |
-AVFilterPicRef *avfilter_next_get_video_buffer(AVFilterLink *link, int perms) |
|
32 |
-{ |
|
33 |
- if(!link->dst->outputs[0]) |
|
34 |
- return NULL; |
|
35 |
- return avfilter_get_video_buffer(link->dst->outputs[0], perms); |
|
36 |
-} |
|
37 |
- |
|
38 | 31 |
/* TODO: set the buffer's priv member to a context structure for the whole |
39 | 32 |
* filter chain. This will allow for a buffer pool instead of the constant |
40 | 33 |
* alloc & free cycle currently implemented. */ |
... | ... |
@@ -48,9 +41,6 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms) |
48 | 48 |
ref->h = link->h; |
49 | 49 |
ref->perms = perms; |
50 | 50 |
|
51 |
- /* we always give the destination filter read access by default */ |
|
52 |
- avfilter_add_pic_perms(ref, link->dst, AV_PERM_READ); |
|
53 |
- |
|
54 | 51 |
pic->refcount = 1; |
55 | 52 |
pic->format = link->format; |
56 | 53 |
pic->free = avfilter_default_free_video_buffer; |
... | ... |
@@ -72,7 +62,7 @@ void avfilter_default_start_frame(AVFilterLink *link, AVFilterPicRef *picref) |
72 | 72 |
if(out) { |
73 | 73 |
out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE); |
74 | 74 |
out->outpic->pts = picref->pts; |
75 |
- avfilter_start_frame(out, avfilter_ref_pic(out->outpic, out->dst, ~0)); |
|
75 |
+ avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0)); |
|
76 | 76 |
} |
77 | 77 |
} |
78 | 78 |
|