diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-10-30 19:36:01 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-10-30 19:37:20 +0100 |
commit | 03179c2426da9ee9058bafd2f6670b859d9caf4d (patch) | |
tree | 2cd8131ceac3f5b3635c55d51620363a7fc36cbb | |
parent | 5cac0656a3cb8d04fc8d43b729c493f3e0e98d54 (diff) | |
download | ffmpeg-streaming-03179c2426da9ee9058bafd2f6670b859d9caf4d.zip ffmpeg-streaming-03179c2426da9ee9058bafd2f6670b859d9caf4d.tar.gz |
lavfi/smartblur: add missing draw slice call.
This fixes output with filtergraphs such as 'split[a][b];
[a]pad=iw*2[src]; [b]smartblur=1:1:1[filt]; [src][filt]overlay=w'
-rw-r--r-- | libavfilter/vf_smartblur.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavfilter/vf_smartblur.c b/libavfilter/vf_smartblur.c index 0402d1a..0df3ca0 100644 --- a/libavfilter/vf_smartblur.c +++ b/libavfilter/vf_smartblur.c @@ -248,9 +248,11 @@ static void blur(uint8_t *dst, const int dst_linesize, static int end_frame(AVFilterLink *inlink) { + int ret; SmartblurContext *sblur = inlink->dst->priv; AVFilterBufferRef *inpic = inlink->cur_buf; - AVFilterBufferRef *outpic = inlink->dst->outputs[0]->out_buf; + AVFilterLink *outlink = inlink->dst->outputs[0]; + AVFilterBufferRef *outpic = outlink->out_buf; int cw = inlink->w >> sblur->hsub; int ch = inlink->h >> sblur->vsub; @@ -270,7 +272,9 @@ static int end_frame(AVFilterLink *inlink) sblur->chroma.filter_context); } - return ff_end_frame(inlink->dst->outputs[0]); + if ((ret = ff_draw_slice(outlink, 0, outlink->h, 1)) < 0) + return ret; + return ff_end_frame(outlink); } AVFilter avfilter_vf_smartblur = { |