diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-20 22:53:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-26 12:16:04 +0200 |
commit | fcd08b77705997f39f88eab268639c2b76cbc6b1 (patch) | |
tree | 0f2d3d8cda1feb4520fc29ff43f4df180bd12665 /libavformat | |
parent | 6889b78fe038beb58bc529af2cf18c53ab4413e5 (diff) | |
download | ffmpeg-streaming-fcd08b77705997f39f88eab268639c2b76cbc6b1.zip ffmpeg-streaming-fcd08b77705997f39f88eab268639c2b76cbc6b1.tar.gz |
avformat/md5enc: add format, version and column headers
See Ticket2280
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/md5enc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/md5enc.c b/libavformat/md5enc.c index 270d9fb..8b14fba 100644 --- a/libavformat/md5enc.c +++ b/libavformat/md5enc.c @@ -117,7 +117,12 @@ static int framemd5_write_header(struct AVFormatContext *s) int res = av_hash_alloc(&c->hash, c->hash_name); if (res < 0) return res; - return ff_framehash_write_header(s); + avio_printf(s->pb, "#format: frame checksums\n"); + avio_printf(s->pb, "#version: 1\n"); + avio_printf(s->pb, "#hash: %s\n", av_hash_get_name(c->hash)); + ff_framehash_write_header(s); + avio_printf(s->pb, "#stream#, dts, pts, duration, size, hash\n"); + return 0; } static int framemd5_write_packet(struct AVFormatContext *s, AVPacket *pkt) |