59 const char *filename =
h->filename;
60 uint8_t
md5[16], buf[2 *
sizeof(
md5) + 1];
66 buf[2 *
sizeof(
md5)] =
'\n';
72 &
h->interrupt_callback,
NULL,
73 h->protocol_whitelist,
h->protocol_blacklist,
h);
79 if (fwrite(buf, 1,
sizeof(buf), stdout) <
sizeof(buf))
int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options, const char *whitelist, const char *blacklist, URLContext *parent)
Create an URLContext for accessing to the resource indicated by url, and open it.
int ffurl_close(URLContext *h)
#define AVIO_FLAG_WRITE
write-only
#define flags(name, subs,...)
void av_md5_init(AVMD5 *ctx)
Initialize MD5 hashing.
void av_md5_final(AVMD5 *ctx, uint8_t *dst)
Finish hashing and output digest value.
struct AVMD5 * av_md5_alloc(void)
Allocate an AVMD5 context.
void av_md5_update(AVMD5 *ctx, const uint8_t *src, size_t len)
Update hash value.
int av_strstart(const char *str, const char *pfx, const char **ptr)
Return non-zero if pfx is a prefix of str.
Public header for MD5 hash function implementation.
static int md5_write(URLContext *h, const unsigned char *buf, int size)
static int md5_open(URLContext *h, const char *filename, int flags)
const URLProtocol ff_md5_protocol
static int md5_close(URLContext *h)
Memory handling functions.
static struct AVMD5 * md5
unbuffered private I/O API
static int ffurl_write(URLContext *h, const uint8_t *buf, int size)
Write size bytes from buf to the resource accessed by h.