[Ffmpeg-cvslog] r7775 - trunk/libavcodec/lzo.c

reimar subversion
Wed Jan 31 10:37:02 CET 2007


Author: reimar
Date: Wed Jan 31 10:37:02 2007
New Revision: 7775

Modified:
   trunk/libavcodec/lzo.c

Log:
Add code to testcode to ease comparing with liblzo.


Modified: trunk/libavcodec/lzo.c
==============================================================================
--- trunk/libavcodec/lzo.c	(original)
+++ trunk/libavcodec/lzo.c	Wed Jan 31 10:37:02 2007
@@ -255,7 +255,13 @@
     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")
     }




More information about the ffmpeg-cvslog mailing list