OK, here's the problem: you find an asf_ext_stream_audio header, and do le2me_ASF_stream_header_t(streamh) on it (line 255 of asfheader.c after your patch). Later on, the same header is found again by the main header-finding loop, and le2me_ASF_stream_header_t is done on it again (line 275). Having been byte-swapped twice, it is now back in its original little-endian form. The type_size field which should be 0x88 (in the sample file at least) is instead seen as 0x88000000 which is not good, and it's signed which makes it double plus ungood.
You need to find a way to ensure that le2me_ASF_stream_header_t doesn't get called twice on the same header.
Excellent! Thanks for spotting that. It'd probably have taken me a very long time to see that - even if I had a mac! The attached version should avoid this problem by starting the main header search loop after the position of the previously detected audio stream if there is one. I've left a couple of extra debug messages in (that give compiler warnings) in case it doesn't work. If Diego or someone else can confirm that this now works on a mac I can take those messages out and resubmit. Thanks, John