From: Diego Biurrun Date: Wed, 21 Jan 2009 17:34:40 +0000 (+0000) Subject: Make base64 test program compilable as a standard test program. X-Git-Tag: v0.5~1072 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=448887a6bb44b267e897899ca48b71bd4f407711;p=platform%2Fupstream%2Flibav.git Make base64 test program compilable as a standard test program. Originally committed as revision 16713 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavutil/base64.c b/libavutil/base64.c index 95f551dbb..0e9ce35e9 100644 --- a/libavutil/base64.c +++ b/libavutil/base64.c @@ -100,12 +100,11 @@ char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len) return ret; } -// #define TEST_BASE64 +#ifdef TEST +#include "log.h" +#include "mem.h" -#ifdef TEST_BASE64 -#include "avutil.h" - -int b64test(void) +int main(void) { int numerr = 0; int len;