Re: Wrap .aac into .m4a container
Re: Wrap .aac into .m4a container
- Subject: Re: Wrap .aac into .m4a container
- From: Thomas Clement <email@hidden>
- Date: Wed, 6 Aug 2008 11:47:29 +0200
Hi,
Thanks for your answer.
As expected your workaround completely removes the crashes.
However the produced .m4a file is readable by QuickTimePlayer but
produces no sound. I also could import the file in iTunes but it
doesn't play it (it immediately skips to the next track).
I could check using an hex editor that the .m4a file does contain the
original .aac audio data (wrap by the .m4a container).
What's wrong?
Thanks,
Thomas
On Aug 6, 2008, at 1:08 AM, William Stewart wrote:
Hi Thomas,
We've figured out the problem.
In Leopard, there is a bug in the AudioFile API when dealing
with .aac files. You can work around the problem by obtaining the
packet count before calling the AudioFileGetProperty for the
MaxPacketSize. The bug is that MaxPacketSize is returning too small
a value and you end up stomping memory when reading packets.
Thanks
Bill
On Aug 5, 2008, at 1:13 AM, Thomas Clement wrote:
Thanks for pointing this error, I wasn't setting the magic cookie.
However now I'm setting it and I'm still getting crashes:
#0 0x92ea4222 in OpaqueObject::FromOpaqueRef ()
#1 0x92f2a12d in AudioFileWritePackets ()
#2 0x00001e7d in main
Also if I add a call to NSLog, I get a new crash on it:
#0 0x91807131 in malloc_error_break ()
#1 0x9180211f in szone_error ()
#2 0x9172a6d1 in small_free_list_remove_ptr ()
#3 0x91727166 in szone_free ()
#4 0x92ffd60b in __CFDataDeallocate ()
#5 0x93038788 in _CFRelease ()
#6 0x9307ba94 in CFTimeZoneCreateWithName ()
#7 0x9307c29f in CFTimeZoneCopySystem ()
#8 0x9307c37f in CFTimeZoneCopyDefault ()
#9 0x92fedb25 in CFCalendarCreateWithIdentifier ()
#10 0x93093787 in __CFLogCString ()
#11 0x93093a8b in _CFLogvEx ()
#12 0x91274d2e in NSLogv ()
#13 0x912d412b in NSLog ()
#14 0x00001e27 in main
This is really weird.
I'll send you the code in a separate e-mail so you can take a look
if you wish.
Thanks,
Thomas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden