30 int i, offset = strlen(buf);
32 for (i = 0; i <
sizeof(md5); i++) {
33 snprintf(buf + offset, 3,
"%02"PRIx8, md5[i]);
62 char buf[64] =
"MD5=";
82 #if CONFIG_FRAMEMD5_MUXER
93 snprintf(buf,
sizeof(buf) - 64,
"%d, %"PRId64
", %d, ", pkt->
stream_index, pkt->
dts, pkt->
size);
105 .write_packet = framemd5_write_packet,
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
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. ...
void av_log(void *avcl, int level, const char *fmt,...)
int void avio_flush(AVIOContext *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
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.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...