mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
matroska: demux: Strip signal byte from encrypted blocks
Removes the signal byte when the frame is unencrypted to be consistent with when the frame is encrypted. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5014>
This commit is contained in:
parent
185307f0be
commit
ca48193cd6
1 changed files with 2 additions and 0 deletions
|
@ -448,6 +448,8 @@ gst_matroska_parse_protection_meta (gpointer * data_out, gsize * size_out,
|
|||
|
||||
/* Unencrypted buffer */
|
||||
if (!(signal_byte & GST_MATROSKA_BLOCK_ENCRYPTED)) {
|
||||
*size_out = gst_byte_reader_get_remaining (&reader);
|
||||
gst_byte_reader_get_data (&reader, *size_out, (const guint8 **) data_out);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue