annotate base64.h @ 1765:420d54aeca16 libavformat

set pts_wrap_bits to 32 since timestamps in packets are 32 bit
author reimar
date Wed, 07 Feb 2007 23:22:53 +0000
parents 3216308a69ee
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1426
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
1 /*
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
2 * Base64.c
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
3 * Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
4 *
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
5 * This file is part of FFmpeg.
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
6 *
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
7 * FFmpeg is free software; you can redistribute it and/or
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
11 *
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
12 * FFmpeg is distributed in the hope that it will be useful,
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
15 * Lesser General Public License for more details.
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
16 *
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
18 * License along with FFmpeg; if not, write to the Free Software
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
20 */
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
21
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
22 int av_base64_decode(uint8_t * out, const char *in, int out_length); // param order as strncpy()
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
23 char *av_base64_encode(uint8_t * src, int len); // src is not a string, it's data.
3216308a69ee Add base64 encoding and decoding routines
gpoirier
parents:
diff changeset
24