Skip to content

Commit

Permalink
ebmlmaster: remove the CRC element once it has been checked
Browse files Browse the repository at this point in the history
We only need the checked status.
  • Loading branch information
robUx4 committed Dec 31, 2024
1 parent 9c65065 commit 59a348c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libebml2/ebmlmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ static err_t ReadData(ebml_master *Element, struct stream *Input, const ebml_par
if (CRCData!=NULL)
{
Element->CheckSumStatus = EBML_CRCMatches(CRCElement, CRCData, CRCDataSize)?2:1;
NodeDelete((node*)CRCElement);
if (CRCData == ARRAYBEGIN(CrcBuffer,uint8_t))
{
StreamClose(ReadStream);
Expand Down

0 comments on commit 59a348c

Please sign in to comment.