59 const char *filename =
h->filename;
65 for (
i = 0;
i <
sizeof(
md5);
i++)
73 &
h->interrupt_callback,
NULL,
74 h->protocol_whitelist,
h->protocol_blacklist,
h);
80 if (fwrite(buf, 1,
i*2+1, stdout) <
i*2+1)
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)
int ffurl_write(URLContext *h, const unsigned char *buf, int size)
Write size bytes from buf to the resource accessed by h.
#define AVIO_FLAG_WRITE
write-only
#define flags(name, subs,...)
void av_md5_init(AVMD5 *ctx)
Initialize MD5 hashing.
struct AVMD5 * av_md5_alloc(void)
Allocate an AVMD5 context.
void av_md5_final(AVMD5 *ctx, uint8_t *dst)
Finish hashing and output digest value.
void av_md5_update(AVMD5 *ctx, const uint8_t *src, int 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.
unbuffered private I/O API