Showing the changes to libavfilter/avfilter.c (1 of 3 files). Show all
Unified · Split
| @@ -989,6 +989,15 @@ enum AVMediaType avfilter_pad_get_type(const AVFilterPad *pads, int pad_idx) · 988 unmodified lines | ||
| 989 | 989 | return pads[pad_idx].type; |
| 990 | 990 | } |
| 991 | 991 | |
| 992 | +AVBufferRef *avfilter_link_get_hw_frames_ctx(AVFilterLink *link) | |
| 993 | +{ | |
| 994 | + FilterLink *plink = ff_filter_link(link); | |
| 995 | + if (plink->hw_frames_ctx) | |
| 996 | + return av_buffer_ref(plink->hw_frames_ctx); | |
| 997 | + | |
| 998 | + return NULL; | |
| 999 | +} | |
| 1000 | + | |
| 992 | 1001 | static int default_filter_frame(AVFilterLink *link, AVFrame *frame) |
| 993 | 1002 | { |
| 994 | 1003 | return ff_filter_frame(link->dst->outputs[0], frame); |