From 007d352c1ca73ffbfa249af51c26abf933c3c842 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 1 May 2011 17:50:34 +0200 Subject: [PATCH] dct-test: Support testing bits>8 Signed-off-by: Michael Niedermayer --- libavcodec/dct-test.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index f8e981be9b..2abb05bd3b 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -195,7 +195,7 @@ static inline void mmx_emms(void) static void dct_error(const char *name, int is_idct, void (*fdct_func)(DCTELEM *block), - void (*fdct_ref)(DCTELEM *block), int form, int test) + void (*fdct_ref)(DCTELEM *block), int form, int test, const int bits) { int it, i, scale; int err_inf, v; @@ -204,6 +204,7 @@ static void dct_error(const char *name, int is_idct, int maxout=0; int blockSumErrMax=0, blockSumErr; AVLFG prng; + const int vals=1<