From 7fc31d2b88a6ccdd1863ff9cf4932241abe7dc25 Mon Sep 17 00:00:00 2001 From: riba101 <7966755+riba101@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:03:06 +0100 Subject: [PATCH] Update Ap4CommonEncryption.cpp Added dvhe and dvh1 support to cbcs --- Source/C++/Core/Ap4CommonEncryption.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/C++/Core/Ap4CommonEncryption.cpp b/Source/C++/Core/Ap4CommonEncryption.cpp index 7ceb01d6..fbc4d1ff 100644 --- a/Source/C++/Core/Ap4CommonEncryption.cpp +++ b/Source/C++/Core/Ap4CommonEncryption.cpp @@ -290,6 +290,8 @@ AP4_CencCbcsSubSampleMapper::AP4_CencCbcsSubSampleMapper(AP4_Size nalu_length_si // look for an hevc sample description AP4_HvccAtom* hvcc = AP4_DYNAMIC_CAST(AP4_HvccAtom, stsd->FindChild("hvc1/hvcC")); if (!hvcc) hvcc = AP4_DYNAMIC_CAST(AP4_HvccAtom, stsd->FindChild("hev1/hvcC")); + if (!hvcc) hvcc = AP4_DYNAMIC_CAST(AP4_HvccAtom, stsd->FindChild("dvh1/hvcC")); + if (!hvcc) hvcc = AP4_DYNAMIC_CAST(AP4_HvccAtom, stsd->FindChild("dvhe/hvcC")); if (!hvcc) return; // parse the vps, sps and pps if we have them