Commit ac79c359 authored by reimar's avatar reimar

Add code to testcode to ease comparing with liblzo.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7775 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f633025c
......@@ -255,7 +255,13 @@ int main(int argc, char *argv[]) {
for (i = 0; i < 300; i++) {
START_TIMER
inlen = clen; outlen = MAXSZ;
#ifdef LIBLZO
if (lzo1x_decompress_safe(comp, inlen, decomp, &outlen, NULL))
#elif defined(LIBLZO_UNSAFE)
if (lzo1x_decompress(comp, inlen, decomp, &outlen, NULL))
#else
if (lzo1x_decode(decomp, &outlen, comp, &inlen))
#endif
av_log(NULL, AV_LOG_ERROR, "decompression error\n");
STOP_TIMER("lzod")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment