From 4cb470633b0fbcd5e374008b1c001b1e9ca6cf8d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 21 Oct 2007 14:40:27 +0200 Subject: [PATCH] Add 3 byte reserved space to the afs info. --- aft.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aft.c b/aft.c index 3666a2eb..d77d7eaf 100644 --- a/aft.c +++ b/aft.c @@ -138,8 +138,10 @@ enum afsi_offsets { AFSI_LYRICS_ID_OFFSET = 24, /** Storage position of the .audio_format_id field. */ AFSI_AUDIO_FORMAT_ID_OFFSET = 28, + /** 3 bytes reserved space for future usage. */ + AFSI_AUDIO_FORMAT_UNUSED_OFFSET = 29, /** On-disk storage space needed. */ - AFSI_SIZE = 29 + AFSI_SIZE = 32 }; /** @@ -161,6 +163,7 @@ void save_afsi(struct afs_info *afsi, struct osl_object *obj) write_u32(buf + AFSI_LYRICS_ID_OFFSET, afsi->lyrics_id); write_u8(buf + AFSI_AUDIO_FORMAT_ID_OFFSET, afsi->audio_format_id); + memset(buf + AFSI_AUDIO_FORMAT_UNUSED_OFFSET, 0, 3); } /** -- 2.39.5