projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0ee3ea
)
Add code to testcode to ease comparing with liblzo.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 31 Jan 2007 09:37:02 +0000
(09:37 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 31 Jan 2007 09:37:02 +0000
(09:37 +0000)
Originally committed as revision 7775 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/lzo.c
patch
|
blob
|
history
diff --git
a/libavcodec/lzo.c
b/libavcodec/lzo.c
index
0ee7eca
..
e4a1111
100644
(file)
--- a/
libavcodec/lzo.c
+++ b/
libavcodec/lzo.c
@@
-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")
}