Interchange two lines in load_afhi().
authorAndre Noll <maan@systemlinux.org>
Fri, 2 Nov 2007 01:48:15 +0000 (02:48 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 2 Nov 2007 01:48:15 +0000 (02:48 +0100)
Just to keep the oder consistent with safe_afhi().

aft.c

diff --git a/aft.c b/aft.c
index 02953b5c4d154e0a089f1a420b0792e2a916ab46..2a35e8ac09b35bcb7493d6218dd69effe51f23e4 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -351,9 +351,9 @@ static void load_afhi(const char *buf, struct afh_info *afhi)
        afhi->seconds_total = read_u32(buf + AFHI_SECONDS_TOTAL_OFFSET);
        afhi->bitrate = read_u32(buf + AFHI_BITRATE_OFFSET);
        afhi->frequency = read_u32(buf + AFHI_FREQUENCY_OFFSET);
-       afhi->channels = read_u8(buf + AFHI_CHANNELS_OFFSET);
        afhi->header_offset = read_u32(buf + AFHI_HEADER_OFFSET_OFFSET);
        afhi->header_len = read_u32(buf + AFHI_HEADER_LEN_OFFSET);
+       afhi->channels = read_u8(buf + AFHI_CHANNELS_OFFSET);
        ms2tv(read_u16(buf + AFHI_EOF_OFFSET), &afhi->eof_tv);
        strcpy(afhi->info_string, buf + AFHI_INFO_STRING_OFFSET);
 }