From ca48193cd6b7ad43f16486d9cd928648fea39015 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 0e9d0b6b14..0149b174c9 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; }