~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libavutil/base64.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-02-05 21:45:05 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090205214505-fvn0jkiv3lrkaaq4
Tags: 3:0.svn20090204-2ubuntu1+unstripped1
rebuild using a clean, uncrippled ffmpeg tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Base64.c
3
2
 * Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
4
3
 *
5
4
 * This file is part of FFmpeg.
20
19
 */
21
20
 
22
21
/**
23
 
* @file base64.c
24
 
 * @brief Base64 Encode/Decode
 
22
 * @file libavutil/base64.c
 
23
 * @brief Base64 encode/decode
25
24
 * @author Ryan Martell <rdm4@martellventures.com> (with lots of Michael)
26
25
 */
27
26
 
65
64
}
66
65
 
67
66
/*****************************************************************************
68
 
* b64_encode: stolen from VLC's http.c
69
 
* simplified by michael
70
 
* fixed edge cases and made it work from data (vs. strings) by ryan.
 
67
* b64_encode: Stolen from VLC's http.c.
 
68
* Simplified by Michael.
 
69
* Fixed edge cases and made it work from data (vs. strings) by Ryan.
71
70
*****************************************************************************/
72
71
 
73
72
char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len)
100
99
    return ret;
101
100
}
102
101
 
103
 
// #define TEST_BASE64
104
 
 
105
 
#ifdef TEST_BASE64
106
 
#include "avutil.h"
107
 
 
108
 
int b64test()
 
102
#ifdef TEST
 
103
#include "log.h"
 
104
#include "mem.h"
 
105
 
 
106
int main(void)
109
107
{
110
108
    int numerr = 0;
111
109
    int len;