mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
hlsdemux: Error out if the key is not 16 bytes large
This commit is contained in:
parent
8c3ef21a68
commit
a84220a658
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue