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:
David Craven 2023-07-09 17:44:03 +02:00 committed by GStreamer Marge Bot
parent 185307f0be
commit ca48193cd6

View file

@ -448,6 +448,8 @@ gst_matroska_parse_protection_meta (gpointer * data_out, gsize * size_out,
/* Unencrypted buffer */ /* Unencrypted buffer */
if (!(signal_byte & GST_MATROSKA_BLOCK_ENCRYPTED)) { 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; return TRUE;
} }