aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/defaults.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-11 22:05:48 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-11 22:05:48 +0000
commitb9609848f359d2cfc6a483d0557421427a878039 (patch)
tree36fedab38b6d1da335ef792c5cf2ce04ceb8d288 /libavfilter/defaults.c
parentb507ebd1792da5e44088ddcab315b41cc500695b (diff)
downloadffmpeg-b9609848f359d2cfc6a483d0557421427a878039.tar.gz
Implement the avfilter_default_draw_slice() handler and use it in
avfilter_draw_slice() when the draw_slice callback is not defined in the input pad. Originally committed as revision 16554 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r--libavfilter/defaults.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c
index da635456c7..9d2064410e 100644
--- a/libavfilter/defaults.c
+++ b/libavfilter/defaults.c
@@ -82,6 +82,17 @@ void avfilter_default_start_frame(AVFilterLink *link, AVFilterPicRef *picref)
}
}
+void avfilter_default_draw_slice(AVFilterLink *link, int y, int h)
+{
+ AVFilterLink *out = NULL;
+
+ if(link->dst->output_count)
+ out = link->dst->outputs[0];
+
+ if(out)
+ avfilter_draw_slice(out, y, h);
+}
+
void avfilter_default_end_frame(AVFilterLink *link)
{
AVFilterLink *out = NULL;