avformat/hlsenc: improve hls encrypt get key file operation
authorSteven Liu <lq@chinaffmpeg.org>
Tue, 25 Jul 2017 02:31:29 +0000 (10:31 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Tue, 25 Jul 2017 02:31:29 +0000 (10:31 +0800)
commit805ce25b1d2f08ac4a8e9dcdb9657ad5f5e83d9e
tree8722d34eacb384585b8a0f480822a340a3283ab9
parent03a9e6ff303ad82e75b734edbe4917ca5fd60159
avformat/hlsenc: improve hls encrypt get key file operation

get key file only once time is ok, no need more times.
Ticket-id: #6545

Found-by: JohnPi
Signed-off-by: Steven Liu <lq@onvideo.cn>
libavformat/hlsenc.c