]> git.sesse.net Git - ffmpeg/commit
checkasm/hevc_add_res: prepare test data only if the fuction is not tested
authorLinjie Fu <linjie.fu@intel.com>
Mon, 9 Mar 2020 14:54:59 +0000 (22:54 +0800)
committerAnton Khirnov <anton@khirnov.net>
Fri, 27 Mar 2020 09:57:40 +0000 (10:57 +0100)
commit69b9548dd63dfbe97a19ca9b93488cebe80f6ef9
treedffa5e5ef13442a318734d3f266af24eecd8ddef
parent8b8492452d53293b2ac8c842877fadf7925fc950
checkasm/hevc_add_res: prepare test data only if the fuction is not tested

check_func will return NULL for functions that have already been tested. If
the func is tested and skipped (which happens several times), there is no
need to prepare data(randomize_buffers and memcpy).

Move relative code in compare_add_res(), prepare data and do check only if
the function is not tested.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
tests/checkasm/hevc_add_res.c