hlsdemux: Error out if the key is not 16 bytes large
This commit is contained in:
parent
8c3ef21a68
commit
a84220a658
@ -1367,6 +1367,8 @@ gst_hls_demux_decrypt_fragment (GstHLSDemux * demux,
|
||||
gst_buffer_map (encrypted_buffer, &encrypted_info, GST_MAP_READ);
|
||||
gst_buffer_map (decrypted_buffer, &decrypted_info, GST_MAP_WRITE);
|
||||
|
||||
if (key_info.size != 16)
|
||||
goto decrypt_error;
|
||||
if (!decrypt_fragment (demux, encrypted_info.size,
|
||||
encrypted_info.data, decrypted_info.data, key_info.data, iv))
|
||||
goto decrypt_error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user