34 int i, offset = strlen(buf);
36 for (i = 0; i <
sizeof(
md5); i++) {
37 snprintf(buf + offset, 3,
"%02"PRIx8, md5[i]);
68 char buf[64] =
"MD5=";
90 #if CONFIG_FRAMEMD5_MUXER
107 snprintf(buf,
sizeof(buf) - 64,
"%d, %10"PRId64
", %10"PRId64
", %8d, %8d, ",
127 .write_header = framemd5_write_header,
128 .write_packet = framemd5_write_packet,
129 .write_trailer = framemd5_write_trailer,
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
struct AVMD5 * av_md5_alloc(void)
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
void av_md5_update(AVMD5 *ctx, const uint8_t *src, const int len)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int void avio_flush(AVIOContext *s)
int ff_framehash_write_header(AVFormatContext *s)
Set the timebase for each stream from the corresponding codec timebase and print it.
#define AVFMT_NOTIMESTAMPS
AVIOContext * pb
I/O context.
void av_md5_init(AVMD5 *ctx)
void av_md5_final(AVMD5 *ctx, uint8_t *dst)
static void md5_finish(struct AVFormatContext *s, char *buf)
void * priv_data
Format private data.
#define AVFMT_VARIABLE_FPS
#define AVFMT_TS_NONSTRICT
static void write_header(FFV1Context *f)
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...