From f5846573f51d0210eb787862a1e759ec61eb766b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 26 Aug 2021 19:05:28 +0200 Subject: [PATCH] mp4: Simplify atom_read_header(). All callers pass non-NULL pointers for the atom size, so the condition which is removed in this commit is always true. --- mp4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mp4.c b/mp4.c index 3963f783..dbe2cf1c 100644 --- a/mp4.c +++ b/mp4.c @@ -188,8 +188,7 @@ static int atom_read_header(struct mp4 *f, uint8_t *atom_type, } else { if (header_size) *header_size = 8; - if (atom_size) - *atom_size = size; + *atom_size = size; } *atom_type = atom_name_to_type(atom_header + 4); return 1; -- 2.39.5