Skip to content

Commit

Permalink
fixed warning in c2c6f6c
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Jan 18, 2024
1 parent d4d8ae2 commit 5f10205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/isomedia/box_code_drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1757,8 +1757,10 @@ GF_Err aeib_box_read(GF_Box *s, GF_BitStream *bs)
GF_AdobeEncryptionInfoBox *ptr = (GF_AdobeEncryptionInfoBox*)s;
u32 len;

if (!ptr->size)
if (!ptr->size) {
//will force error exit
ISOM_DECREASE_SIZE(ptr, 1);
}

len = (u32) ptr->size - 1;
if (len) {
Expand Down

0 comments on commit 5f10205

Please sign in to comment.