From 9e876b72c811a1cb77b6ecbd4cba6f5b648be662 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 9 Aug 2021 23:31:38 +0200 Subject: [PATCH] mp4: Fix trivial coding style issues in read_mvhd(). Some comments were located before the corresponding read statement, some after, and some comments were indented weirdly. No real change. --- mp4.c | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/mp4.c b/mp4.c index b9931821..345775b2 100644 --- 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; } -- 2.39.5