]> git.sesse.net Git - ffmpeg/commit
libavformat/hlsenc: Allow usage of 'periodic-rekey' with multi-variant streams
authorYaroslav Pogrebnyak <yyyaroslav@gmail.com>
Thu, 30 Apr 2020 13:10:53 +0000 (21:10 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Wed, 6 May 2020 03:53:23 +0000 (11:53 +0800)
commit7f0200d0d2639ed9cfd37934b29b43c3c3c4e674
tree7a0a8ee8e58b5bbc6859d19878d0e1016d5b8c88
parenta7bab199e50619df0a6d31a247f7186868e6e4e0
libavformat/hlsenc: Allow usage of 'periodic-rekey' with multi-variant streams

This patch adds possibility to use 'periodic-rekey' option with
multi-variant streams to hlsenc muxer. All streams variants
use parameters from the same key_info_file.

There are 2 sets of encryption options that kind of overlaps and add
complexity, so I tried to do the thing without changing too much code.

There is a little duplication of the key_file, key_uri, iv_string, etc
in the VariantStream since we copy it from hls to each variant stream,
but generally all the code remains the same to minimise appearing
of unexpected bugs. Refactoring could be done as a separate patch then as needed.

Signed-off-by: Yaroslav Pogrebnyak <yyyaroslav@gmail.com>
libavformat/hlsenc.c