From 061df8a695855e317381012672667b4f8241c6a4 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 27 Feb 2025 09:02:54 +0100 Subject: [PATCH] Dont include videoDepacketizer in VP1Packet Now that we have separated the Packet/Depacketizer roles for the AV1 codec, there is no need to include the videoDepacketizer mixin in AV1Packet. --- codecs/av1_packet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codecs/av1_packet.go b/codecs/av1_packet.go index a9c69bda..102e8946 100644 --- a/codecs/av1_packet.go +++ b/codecs/av1_packet.go @@ -136,7 +136,8 @@ type AV1Packet struct { // AV1Frame provides the tools to construct a collection of OBUs from a collection of OBU Elements OBUElements [][]byte - videoDepacketizer + // zeroAllocation prevents populating the OBUElements field + zeroAllocation bool } // Unmarshal parses the passed byte slice and stores the result in the AV1Packet this method is called upon.