From eb4b9e3d4f0c0c7e57057a0a3ce44bf8098d9464 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 18 Aug 2021 15:15:41 +0200 Subject: [PATCH] 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. --- mp4.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.39.5