Commit 860b5c0a authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/kerndeint: fix mismatch between declared pixel format and test

+10l.
parent bb4fb771
...@@ -203,7 +203,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic) ...@@ -203,7 +203,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic)
if (map) { if (map) {
g = x & ~3; g = x & ~3;
if (inlink->format == AV_PIX_FMT_RGBA) { if (inlink->format == AV_PIX_FMT_ARGB) {
AV_WB32(dstp + g, 0xffffffff); AV_WB32(dstp + g, 0xffffffff);
x = g + 3; x = g + 3;
} else if (inlink->format == AV_PIX_FMT_YUYV422) { } else if (inlink->format == AV_PIX_FMT_YUYV422) {
...@@ -214,7 +214,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic) ...@@ -214,7 +214,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *inpic)
dstp[x] = plane == 0 ? 235 : 128; dstp[x] = plane == 0 ? 235 : 128;
} }
} else { } else {
if (inlink->format == AV_PIX_FMT_RGBA) { if (inlink->format == AV_PIX_FMT_ARGB) {
hi = 255; hi = 255;
lo = 0; lo = 0;
} else if (inlink->format == AV_PIX_FMT_YUYV422) { } else if (inlink->format == AV_PIX_FMT_YUYV422) {
......
argb 484893f83e13c937328f13a7c84d2f50 argb 93ba0daa1e945ad1a6f8c0c1cd2e1858
yuv420p a935cce07c5287b92c6d5220361866ed yuv420p a935cce07c5287b92c6d5220361866ed
yuyv422 f549c98059ba9ce50e28204256d13b5d yuyv422 f549c98059ba9ce50e28204256d13b5d
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment