mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/vf_smartblur: pass old context to sws_getCachedContext
Otherwise it make no sense to use sws_getCachedContext. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
9ef20920ab
commit
3951c1899e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue