You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
checkasm/sw_scale: add assertion for hscale assumption
This code only checks hcScale. In practice this is not an issue because the function pointers should always be identical to hyScale for the same filter size. Add an assertion just to make sure this assumption never regresses. Signed-off-by: Niklas Haas <git@haasn.dev> Sponsored-by: Sovereign Tech Fund
This commit is contained in:
@ -346,6 +346,7 @@ static void check_hscale(void)
|
||||
memcpy(filterAvx2, filter, sizeof(uint16_t) * (SRC_PIXELS * MAX_FILTER_WIDTH + MAX_FILTER_WIDTH));
|
||||
ff_shuffle_filter_coefficients(c, filterPosAvx, width, filterAvx2, sws->dst_w);
|
||||
|
||||
av_assert0(c->hyScale == c->hcScale);
|
||||
if (check_func(c->hcScale, "hscale_%d_to_%d__fs_%d_dstW_%d", c->srcBpc, c->dstBpc + 1, width, sws->dst_w)) {
|
||||
memset(dst0, 0, SRC_PIXELS * sizeof(dst0[0]));
|
||||
memset(dst1, 0, SRC_PIXELS * sizeof(dst1[0]));
|
||||
|
Reference in New Issue
Block a user