From 860b5c0a631a8b751affde38d5aa1cbaca7a4047 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 5 Jan 2013 14:03:40 +0100 Subject: lavfi/kerndeint: fix mismatch between declared pixel format and test +10l. --- libavfilter/vf_kerndeint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter') 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) { -- cgit v1.2.3