[xiph-commits] r11301 - trunk/xiph-qt/OggImport/src
arek at svn.xiph.org
arek at svn.xiph.org
Thu Apr 27 16:24:00 PDT 2006
Author: arek
Date: 2006-04-27 16:23:55 -0700 (Thu, 27 Apr 2006)
New Revision: 11301
Modified:
trunk/xiph-qt/OggImport/src/stream_flac.c
Log:
Oops, size DOES matter.
Modified: trunk/xiph-qt/OggImport/src/stream_flac.c
===================================================================
--- trunk/xiph-qt/OggImport/src/stream_flac.c 2006-04-27 21:08:09 UTC (rev 11300)
+++ trunk/xiph-qt/OggImport/src/stream_flac.c 2006-04-27 23:23:55 UTC (rev 11301)
@@ -160,7 +160,7 @@
{
unsigned long serialnoatom[3] = { EndianU32_NtoB(sizeof(serialnoatom)), EndianU32_NtoB(kCookieTypeOggSerialNo),
EndianS32_NtoB(ogg_page_serialno(op)) };
- unsigned long atomhead[2] = { EndianU32_NtoB(opckt->bytes + sizeof(atomhead)), EndianU32_NtoB(kCookieTypeFLACStreaminfo) };
+ unsigned long atomhead[2] = { EndianU32_NtoB(opckt->bytes + sizeof(atomhead) - 13), EndianU32_NtoB(kCookieTypeFLACStreaminfo) };
UInt32 sib = EndianU32_BtoN(* (UInt32 *) (((char *)opckt->packet) + 27));
si->si_flac.metablocks = (SInt32) EndianU16_BtoN(* (UInt16 *) (((char *)opckt->packet) + 7));
More information about the commits
mailing list