]> git.tue.mpg.de Git - paraslash.git/commitdiff
mp4: Remove dead store from find_atom_v2().
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 18 Aug 2021 13:15:41 +0000 (15:15 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
The "size" variable is not used in the code which follows the loop
we are breaking out here.

mp4.c

diff --git a/mp4.c b/mp4.c
index 18c9882e5160e30e42635ecb8648593663ba0168..aa9435927c3efbf5a1956d6e0ce86a27f5fbe192 100644 (file)
--- 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;
        }