commit ad185d7dc9b8688e1892ad0b399ad9ad32cb3050 Author: Nikias Bassen <nik...@gmx.li> Date: Sat Oct 2 20:43:41 2010 +0200
field unk_0xa8 is 16 bit not 32 bit wide src/itdb_itunesdb.c | 5 +++-- src/itdb_private.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) --- diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index 9e3c37a..ab995f2 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -3081,7 +3081,7 @@ static gboolean parse_fimp (FImport *fimp, gboolean compressed) CHECK_ERROR (fimp, FALSE); fimp->itdb->priv->unk_0xa6 = get16lint (cts, seek+0xA6); CHECK_ERROR (fimp, FALSE); - fimp->itdb->priv->unk_0xa8 = get32lint (cts, seek+0xA8); + fimp->itdb->priv->unk_0xa8 = get16lint (cts, seek+0xA8); CHECK_ERROR (fimp, FALSE); if(fimp->itdb->priv->unk_0xa8 != 0) { g_warning ("Unknown value for 0xa8 in header: should be 0 for uncompressed, is %d.\n", fimp->itdb->priv->unk_0xa8); @@ -3823,7 +3823,8 @@ static void mk_mhbd (FExport *fexp, guint32 children) put16lint (cts, fexp->itdb->priv->subtitle_language); /* subtitle_language */ put16lint (cts, fexp->itdb->priv->unk_0xa4); /* unknown */ put16lint (cts, fexp->itdb->priv->unk_0xa6); /* unknown */ - put32lint (cts, fexp->itdb->priv->unk_0xa8); /* unknown */ + put16lint (cts, fexp->itdb->priv->unk_0xa8); /* unknown */ + put16lint (cts, 0); put32_n0 (cts, 4); /* dummy space */ } diff --git a/src/itdb_private.h b/src/itdb_private.h index bfc9b49..7f78967 100644 --- a/src/itdb_private.h +++ b/src/itdb_private.h @@ -197,7 +197,7 @@ struct _Itdb_iTunesDB_Private gint16 subtitle_language; gint16 unk_0xa4; gint16 unk_0xa6; - gint32 unk_0xa8; + gint16 unk_0xa8; }; /* private data for Itdb_Track */ ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2