]> git.sesse.net Git - ffmpeg/commit
avformat/hashenc: use an array of hashes
authorMoritz Barsnick <barsnick@gmx.net>
Thu, 12 Sep 2019 09:23:05 +0000 (11:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 20 Sep 2019 21:26:34 +0000 (23:26 +0200)
commit666b4278811f401a23186b9bc709c3d085f19e80
tree888f7f481965aaac534b4003194aeeb374c2dba9
parentd214f216110f3af9be3b6af2ed5ca285ffe3bda3
avformat/hashenc: use an array of hashes

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>
libavformat/hashenc.c