Media Foundation crash when playing Dolby AC4 file

Started by r,

r

Hi Ian,

I experienced a crash when attempting to play a Dolby AC4 file with XMPlay 4.0.0.1 on Windows 11.

To duplicate the bug, you'll need to install the Dolby AC4 decoder. Can find it at MajorGeeks. I've uploaded a sample AC4 file with the .mp4 extension to the FTP. Once you have installed the Dolby AC4 decoder, set XMPlay's output plugin to DirectSound and attempt to load the AC4 file, XMPlay will crash with the following error message:

QuoteThe "Media Foundation" plugin crashed (c0000005) in DolbyAc4DecMft.dll while attempting to scan the following file.

If you play the AC4 file with Windows Media Player from Microsoft Store, it will play correctly.

Let me know if you need any other debug info from me.

Ian @ un4seen

That decoder is crashing when XMPlay tries to release it. It seems to not like the fact that XMPlay isn't decoding any data when just scanning a file (to get the duration and tags), as it doesn't crash if XMPlay does decode some data before releasing. Don't really want to be wasting time decoding data that won't be played, so I'll first try to find some other solution.

Ian @ un4seen

Here's an update for you to try:

   www.un4seen.com/stuff/xmplay.exe

Let me know if you still have the problem with any files.

r

Thanks Ian! Can confirm the latest stuff update is playing AC-4 files just fine.

I did find a few, minor display issues. On the "Info - General" tab, the Format displays as "Unknown (7998b2a0)" and for skins that display the file format, the format says "MF?". I'm assuming MF stands for Media Foundation. Not big things to address, but thought I'd mention them. Thanks again!

Ian @ un4seen

Good to hear the update is working well.

Yeah, "MF?" indicates that Media Foundation is being used with a format that isn't recognised by XMPlay, and the "unknown" hex number is the first 32 bits of the audio subtype GUID. I'll add AC4 to the recognised list.