From c79d16ae8019f3fc33ac2c7236245353c5577335 Mon Sep 17 00:00:00 2001 From: David Craven Date: Sun, 9 Jul 2023 17:44:03 +0200 Subject: [PATCH] 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: --- .../gst-plugins-good/gst/matroska/matroska-read-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c b/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c index e1e35dc058..36fe153c8a 100644 --- a/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c +++ b/subprojects/gst-plugins-good/gst/matroska/matroska-read-common.c @@ -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; }