]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
mp4: Fix trivial coding style issues in read_mvhd().
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 9 Aug 2021 21:31:38 +0000 (23:31 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
Some comments were located before the corresponding read statement,
some after, and some comments were indented weirdly.

No real change.

mp4.c

diff --git a/mp4.c b/mp4.c
index b9931821aff1f0e482ac40acbbea6e655c73dee8..345775b247d0cf417dff7bb5f513ab0e7a86773b 100644 (file)
--- a/mp4.c
+++ b/mp4.c
@@ -670,28 +670,23 @@ static int32_t read_mvhd(mp4ff_t * f)
 
        read_char(f);   /* version */
        read_int24(f);  /* flags */
-       /* creation_time */ read_int32(f);
-       /* modification_time */ read_int32(f);
+       read_int32(f); /* creation_time */
+       read_int32(f); /* modification_time */
        f->time_scale = read_int32(f);
        f->duration = read_int32(f);
-                                                       /* preferred_rate */ read_int32(f);
-                                                       /*mp4ff_read_fixed32(f); */
-                                                       /* preferred_volume */ read_int16(f);
-                                                       /*mp4ff_read_fixed16(f); */
-       for (i = 0; i < 10; i++) {
-               /* reserved */ read_char(f);
-       }
-       for (i = 0; i < 9; i++) {
-               read_int32(f);  /* matrix */
-       }
-       /* preview_time */ read_int32(f);
-       /* preview_duration */ read_int32(f);
-       /* poster_time */ read_int32(f);
-       /* selection_time */ read_int32(f);
-       /* selection_duration */ read_int32(f);
-       /* current_time */ read_int32(f);
-       /* next_track_id */ read_int32(f);
-
+       read_int32(f); /* preferred_rate */
+       read_int16(f); /* preferred_volume */
+       for (i = 0; i < 10; i++)
+               read_char(f); /* reserved */
+       for (i = 0; i < 9; i++)
+               read_int32(f); /* matrix */
+       read_int32(f); /* preview_time */
+       read_int32(f); /* preview_duration */
+       read_int32(f); /* poster_time */
+       read_int32(f); /* selection_time */
+       read_int32(f); /* selection_duration */
+       read_int32(f); /* current_time */
+       read_int32(f); /* next_track_id */
        return 0;
 }