aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-01-06 07:23:43 +0100
committerClément Bœsch <ubitux@gmail.com>2013-01-06 18:59:15 +0100
commitf6659e5c5e76f346fa556eab4be41533914c6ed4 (patch)
tree2b243166e465b65e76979c7ac2a27de96a382773
parent1ae9d2820e1181a1109c230d4f1e717443dcce2d (diff)
downloadffmpeg-f6659e5c5e76f346fa556eab4be41533914c6ed4.tar.gz
lavfi/kerndeint: fix temp buffer linesize.
Also re-enable the FATE test.
-rw-r--r--libavfilter/vf_kerndeint.c2
-rw-r--r--tests/fate/avfilter.mak1
-rw-r--r--tests/ref/lavfi/kerndeint2
3 files changed, 3 insertions, 2 deletions
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