[MPlayer-dev-eng] [PATCH] - fix for audio and video in dvr-ms asf

Alan Curry pacman at TheWorld.com
Wed Apr 26 23:56:46 CEST 2006


John Donaghy writes the following:
>
>> I'll make some time.  Send me your debug patch.
>>
>Great, thanks. This version of the patch has a few extra 'verbose'
>messages that should better indicate where the problem lies.

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.




More information about the MPlayer-dev-eng mailing list