diff options
author | James Almer <jamrial@gmail.com> | 2017-12-10 00:51:35 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-12-10 00:51:35 -0300 |
commit | 1215889bc189e1787d7135dd628b9591d237d737 (patch) | |
tree | 3c39032c7cdbdd03e5e67bcba80dfd2ed7d5a665 /tests/checkasm/llviddsp.c | |
parent | 438f884fc48b4b956fa713df2a722bd484f5646b (diff) | |
download | ffmpeg-1215889bc189e1787d7135dd628b9591d237d737.tar.gz |
checkasm/llviddsp: fix mixed code and declarations
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/checkasm/llviddsp.c')
-rw-r--r-- | tests/checkasm/llviddsp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/checkasm/llviddsp.c b/tests/checkasm/llviddsp.c index be63809a4b..4f75ffc459 100644 --- a/tests/checkasm/llviddsp.c +++ b/tests/checkasm/llviddsp.c @@ -168,14 +168,14 @@ static void check_add_left_pred_16(LLVidDSPContext c, unsigned mask, int width, static void check_add_gradient_pred(LLVidDSPContext c, int w) { int src_size, stride; uint8_t *src0, *src1; + declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *src, const ptrdiff_t stride, + const ptrdiff_t width); + stride = w + 32; src_size = (stride + 32) * 2; /* dsp need previous line, and ignore the start of the line */ src0 = av_mallocz(src_size); src1 = av_mallocz(src_size); - declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *src, const ptrdiff_t stride, - const ptrdiff_t width); - init_buffer(src0, src1, uint8_t, src_size); if (check_func(c.add_gradient_pred, "add_gradient_pred")) { |