mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-04 22:04:38 +00:00
Add code to testcode to ease comparing with liblzo.
Originally committed as revision 7775 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f0ee3ea619
commit
d62a0c1e5d
@ -255,7 +255,13 @@ int main(int argc, char *argv[]) {
|
|||||||
for (i = 0; i < 300; i++) {
|
for (i = 0; i < 300; i++) {
|
||||||
START_TIMER
|
START_TIMER
|
||||||
inlen = clen; outlen = MAXSZ;
|
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))
|
if (lzo1x_decode(decomp, &outlen, comp, &inlen))
|
||||||
|
#endif
|
||||||
av_log(NULL, AV_LOG_ERROR, "decompression error\n");
|
av_log(NULL, AV_LOG_ERROR, "decompression error\n");
|
||||||
STOP_TIMER("lzod")
|
STOP_TIMER("lzod")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user