1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

rewrite ff_data_to_hex

This commit is contained in:
Harlan 2018-08-12 14:10:18 +08:00
parent e9cb8210fc
commit ac6b37de4b
3 changed files with 13 additions and 20 deletions

View file

@ -771,7 +771,7 @@ srs_error_t SrsHlsMuxer::_refresh_m3u8(string m3u8_file)
{
string filename = req->stream+"-"+srs_int2str(segment->sequence_no)+".key";
char hexiv[33];
ff_data_to_hex(hexiv,segment->iv,16,0);
srs_data_to_hex(hexiv,segment->iv,16);
hexiv[32] = '\0';
string key_path;
//if key_url is not set,only use the file name