summaryrefslogtreecommitdiff
path: root/libavformat/hashenc.c
Commit message (Collapse)AuthorAge
* avformat/hashenc: fix incorrect use of av_mallocz_array()Moritz Barsnick2019-09-23
| | | | | | | Fixes CID 1453867, CID 1453866, CID 1453865. Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/hashenc: add streamhash muxerMoritz Barsnick2019-09-20
| | | | | | | | | Implemented as a variant of the hash muxer, reusing most functions, and making use of the previously introduced array of hashes. Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/hashenc: use an array of hashesMoritz Barsnick2019-09-20
| | | | | | | | | | | | | | | | | Only the first element of the array is used currently, the other elements are in preparation for a new muxer calculating multiple hashes. Also move alloc/init code from the write_header() functions to dedicated init() functions, and the cleanup code from the write_trailer() functions to dedicated deinit() functions. hash_free() and framehash_free() turn out to be identical here, but will differ in the subsequent commit, so they are not consolidated. Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/hashenc: rearrange options definitionMoritz Barsnick2019-09-20
| | | | | | | | | | Only the frame* muxers support the format_version option. Use macros to ease the proliferation of identical options to coming muxers as well. Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/hashenc: Correct the hash/MD5 muxer class nameJun Zhao2019-04-03
| | | | | | Follow the name style to correct the hash/md5 muxer class name Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avformat/hashenc: add missing avio_flush to hash_write_trailerJames Almer2016-04-16
| | | | | | It was accidentally deleted in the previous hashenc commit Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/hashenc: simplify hash_write_trailerJames Almer2016-04-14
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/framehash: enable new outputJames Almer2016-04-13
| | | | | | | Also, make every addition except for sidedata part of version 1 instead of the new version 2. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/framehash: add sidedata checksumJames Almer2016-04-13
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/framehash: add extradata checksumJames Almer2016-04-13
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/framehash: Add more information to the outputMichael Niedermayer2016-04-12
| | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: add hash and framehash muxersMoritz Barsnick2016-04-12
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: James Almer <jamrial@gmail.com>