]> git.tue.mpg.de Git - paraslash.git/commitdiff
mp4: Remove member moov_read of struct mp4ff.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 9 Aug 2021 17:18:01 +0000 (19:18 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
It is set but never read.

mp4.c
mp4.h

diff --git a/mp4.c b/mp4.c
index 7bef0d756edf746319380c670a6710a9654ed281..cdcfa6511abdae0ffc0dbfd8ac77be1288d39427 100644 (file)
--- a/mp4.c
+++ b/mp4.c
@@ -1289,7 +1289,6 @@ static int32_t parse_atoms(mp4ff_t * f, int meta_only)
                f->last_atom = atom_type;
 
                if (atom_type == ATOM_MOOV && size > header_size) {
-                       f->moov_read = 1;
                        f->moov_offset = mp4ff_position(f) - header_size;
                        f->moov_size = size;
                }
diff --git a/mp4.h b/mp4.h
index 2cf3071fa6bb64301e38b48680409cddbe38181a..28cfbce499143d37bb5287fba2ad72cd9b47614c 100644 (file)
--- a/mp4.h
+++ b/mp4.h
@@ -78,7 +78,6 @@ typedef struct
     mp4ff_callback_t *stream;
     int64_t current_position;
 
-    int32_t moov_read;
     uint64_t moov_offset;
     uint64_t moov_size;
     uint8_t last_atom;