diff --git a/libavfilter/vf_kerndeint.c b/libavfilter/vf_kerndeint.c index 26f2e492af..e9598f922d 100644 --- a/libavfilter/vf_kerndeint.c +++ b/libavfilter/vf_kerndeint.c @@ -163,7 +163,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic) srcp = srcp_saved = inpic->data[plane]; src_linesize = inpic->linesize[plane]; - psrc_linesize = outpic->linesize[plane]; + psrc_linesize = kerndeint->tmp_bwidth[plane]; dstp = dstp_saved = outpic->data[plane]; dst_linesize = outpic->linesize[plane]; srcp = srcp_saved + (1 - order) * src_linesize; diff --git a/tests/fate/avfilter.mak b/tests/fate/avfilter.mak index e69d6a14e2..e1e7280e31 100644 --- a/tests/fate/avfilter.mak +++ b/tests/fate/avfilter.mak @@ -41,6 +41,7 @@ FATE_LAVFI = fate-lavfi-alphaextract_rgb \ FATE_LAVFI-$(CONFIG_GPL) += fate-lavfi-colormatrix1 \ fate-lavfi-colormatrix2 \ fate-lavfi-hue \ + fate-lavfi-kerndeint \ fate-lavfi-pixfmts_super2xsai \ fate-lavfi-tinterlace_merge \ fate-lavfi-tinterlace_pad \ diff --git a/tests/ref/lavfi/kerndeint b/tests/ref/lavfi/kerndeint index b03f977624..276931981c 100644 --- a/tests/ref/lavfi/kerndeint +++ b/tests/ref/lavfi/kerndeint @@ -6,5 +6,5 @@ bgr0 364b8bcd1c7a384902077bc7190c5ea3 bgra 81ac8315a4c66e363bc6fa3e99d9cd2b rgb0 ae0c2afbc266345c1372276755595105 rgba 42a6cc9b815ca0ee69c29db3616ce25e -yuv420p a935cce07c5287b92c6d5220361866ed +yuv420p 40ca042814882b0b791cbec38e289702 yuyv422 f549c98059ba9ce50e28204256d13b5d