Skip to content

Commit

Permalink
Update Ap4CommonEncryption.cpp
Browse files Browse the repository at this point in the history
Added dvhe and dvh1 support to cbcs
  • Loading branch information
riba101 authored Nov 16, 2023
1 parent 2e2dc01 commit 7fc31d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/C++/Core/Ap4CommonEncryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fc31d2

Please sign in to comment.