From: Andre Noll Date: Thu, 26 Aug 2021 17:05:28 +0000 (+0200) Subject: mp4: Simplify atom_read_header(). X-Git-Tag: v0.7.1~7^2~20 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=f5846573f51d0210eb787862a1e759ec61eb766b;p=paraslash.git 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. --- 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;