- if(link->src->input_count && link->src->inputs[0])
- return avfilter_make_format_list(1, link->src->inputs[0]->format);
- else
- /* XXX: any non-simple filter which would cause this branch to be taken
- * really should implement its own query_formats() for this link */
- return avfilter_make_format_list(0);
+ avfilter_set_common_formats(ctx, avfilter_all_colorspaces());
+ return 0;
+}
+
+void avfilter_null_start_frame(AVFilterLink *link, AVFilterPicRef *picref)
+{
+ avfilter_start_frame(link->dst->outputs[0], picref);
+}
+
+void avfilter_null_draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
+{
+ avfilter_draw_slice(link->dst->outputs[0], y, h, slice_dir);
+}
+
+void avfilter_null_end_frame(AVFilterLink *link)
+{
+ avfilter_end_frame(link->dst->outputs[0]);
+}
+
+AVFilterPicRef *avfilter_null_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
+{
+ return avfilter_get_video_buffer(link->dst->outputs[0], perms, w, h);