summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-01-05 14:03:40 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-01-05 14:04:33 +0100
commit860b5c0a631a8b751affde38d5aa1cbaca7a4047 (patch)
treecb5244560335fd50da85cd980cd10662d89c38f6
parentbb4fb7715cf7a19e9833a3a8a598342552499a24 (diff)
lavfi/kerndeint: fix mismatch between declared pixel format and test
+10l.
-rw-r--r--libavfilter/vf_kerndeint.c4
-rw-r--r--tests/ref/lavfi/kerndeint2
2 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_kerndeint.c b/libavfilter/vf_kerndeint.c
index 3569bfaa64..c97df45953 100644
--- a/libavfilter/vf_kerndeint.c
+++ b/libavfilter/vf_kerndeint.c
@@ -203,7 +203,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic)
if (map) {
g = x & ~3;
- if (inlink->format == AV_PIX_FMT_RGBA) {
+ if (inlink->format == AV_PIX_FMT_ARGB) {
AV_WB32(dstp + g, 0xffffffff);
x = g + 3;
} else if (inlink->format == AV_PIX_FMT_YUYV422) {
@@ -214,7 +214,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic)
dstp[x] = plane == 0 ? 235 : 128;
}
} else {
- if (inlink->format == AV_PIX_FMT_RGBA) {
+ if (inlink->format == AV_PIX_FMT_ARGB) {
hi = 255;
lo = 0;
} else if (inlink->format == AV_PIX_FMT_YUYV422) {
diff --git a/tests/ref/lavfi/kerndeint b/tests/ref/lavfi/kerndeint
index d7ace93679..3ec514d8a8 100644
--- a/tests/ref/lavfi/kerndeint
+++ b/tests/ref/lavfi/kerndeint
@@ -1,3 +1,3 @@
-argb 484893f83e13c937328f13a7c84d2f50
+argb 93ba0daa1e945ad1a6f8c0c1cd2e1858
yuv420p a935cce07c5287b92c6d5220361866ed
yuyv422 f549c98059ba9ce50e28204256d13b5d