From: Andre Noll Date: Wed, 18 Aug 2021 13:15:41 +0000 (+0200) Subject: mp4: Remove dead store from find_atom_v2(). X-Git-Tag: v0.7.1~7^2~61 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=eb4b9e3d4f0c0c7e57057a0a3ce44bf8098d9464;p=paraslash.git mp4: Remove dead store from find_atom_v2(). The "size" variable is not used in the code which follows the loop we are breaking out here. --- diff --git a/mp4.c b/mp4.c index 18c9882e..aa943592 100644 --- a/mp4.c +++ b/mp4.c @@ -1123,10 +1123,8 @@ static uint32_t find_atom_v2(struct mp4 *f, uint64_t base, uint32_t size, return 2; } base += mysize; - if (size <= mysize) { - size = 0; + if (size <= mysize) break; - } size -= mysize; }