The test program is of doubtful utility and correctness.
---
libavcodec/Makefile | 2 +-
libavcodec/cabac.c | 39 ---------------------------------------
2 files changed, 1 insertions(+), 40 deletions(-)
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index b426129..5ad5e6e 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -684,7 +684,7 @@ SKIPHEADERS-$(HAVE_W32THREADS) += w32pthreads.h
EXAMPLES = api
-TESTPROGS = cabac dct fft fft-fixed h264 iirfilter rangecoder
+TESTPROGS = dct fft fft-fixed h264 iirfilter rangecoder
TESTPROGS-$(HAVE_MMX) += motion
TESTOBJS = dctref.o
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index f299de6..9e0ca03 100644
--- a/libavcodec/cabac.c
+++ b/libavcodec/cabac.c
@@ -154,42 +154,3 @@ void ff_init_cabac_states(CABACContext *c){
}
}
}
-
-#ifdef TEST
-#define SIZE 10240
-
-#include "libavutil/lfg.h"
-#include "avcodec.h"
-#include "cabac.h"
-
-int main(void){
- CABACContext c;
- uint8_t b[9*SIZE];
- uint8_t r[9*SIZE];
- int i;
- uint8_t state[10]= {0};
-
- ff_init_cabac_states(&c);
-
- ff_init_cabac_decoder(&c, b, SIZE);
-
- for(i=0; i<SIZE; i++){
-START_TIMER
- if( (r[i]&1) != get_cabac_bypass(&c) )
- av_log(NULL, AV_LOG_ERROR, "CABAC bypass failure at %d\n", i);
-STOP_TIMER("get_cabac_bypass")
- }
-
- for(i=0; i<SIZE; i++){
-START_TIMER
- if( (r[i]&1) != get_cabac(&c, state) )
- av_log(NULL, AV_LOG_ERROR, "CABAC failure at %d\n", i);
-STOP_TIMER("get_cabac")
- }
- if(!get_cabac_terminate(&c))
- av_log(NULL, AV_LOG_ERROR, "where's the Terminator?\n");
-
- return 0;
-}
-
-#endif /* TEST */
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel