mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
tests/checkasm/sw_ops: set correct plane index order
All four components were accidentally being read/written to/from the same plane. Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
@@ -117,12 +117,17 @@ static void check_ops(const char *report, const unsigned ranges[NB_PLANES],
|
||||
SwsContext *ctx = sws_alloc_context();
|
||||
SwsCompiledOp comp_ref = {0}, comp_new = {0};
|
||||
const SwsOpBackend *backend_new = NULL;
|
||||
SwsOpList oplist = { .ops = (SwsOp *) ops };
|
||||
const SwsOp *read_op, *write_op;
|
||||
static const unsigned def_ranges[4] = {0};
|
||||
if (!ranges)
|
||||
ranges = def_ranges;
|
||||
|
||||
SwsOpList oplist = {
|
||||
.ops = (SwsOp *) ops,
|
||||
.plane_src = {0, 1, 2, 3},
|
||||
.plane_dst = {0, 1, 2, 3},
|
||||
};
|
||||
|
||||
declare_func(void, const SwsOpExec *, const void *, int bx, int y, int bx_end, int y_end);
|
||||
|
||||
static DECLARE_ALIGNED_64(char, src0)[NB_PLANES][LINES][PIXELS * sizeof(uint32_t[4])];
|
||||
|
||||
Reference in New Issue
Block a user