Commit 3951c189 authored by Zhao Zhili's avatar Zhao Zhili

avfilter/vf_smartblur: pass old context to sws_getCachedContext

Otherwise it make no sense to use sws_getCachedContext.
Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
parent 9ef20920
......@@ -136,7 +136,7 @@ static int alloc_sws_context(FilterParam *f, int width, int height, unsigned int
vec->coeff[vec->length / 2] += 1.0 - f->strength;
sws_filter.lumH = sws_filter.lumV = vec;
sws_filter.chrH = sws_filter.chrV = NULL;
f->filter_context = sws_getCachedContext(NULL,
f->filter_context = sws_getCachedContext(f->filter_context,
width, height, AV_PIX_FMT_GRAY8,
width, height, AV_PIX_FMT_GRAY8,
flags, &sws_filter, NULL, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment