PDA

View Full Version : Problems opening some mp3 avi files (with possible fix)


squid_80
27th March 2006, 14:47
A while ago a problem was discovered with some avi files that have bad WAVEFORMATEX headers for their mp3 streams (more info here: http://forums.virtualdub.org/index.php?act=ST&f=3&t=10931& )

Basically the headers have a value of 16 for wBitsPerSample, which the fraunhofer acm codec refuses to handle. The result is avisynth fails to open the avi file unless audio=false is used.
As a proposed solution I suggest changing AudioStreamSource::AudioStreamSource (in VD_Audio.cpp) to check if iFormat->wFormatTag==0x55, and if true set wBitsPerSample to 0.
Or we could wait and see how Avery does it, which will probably be something smarter than my method. :)

IanB
28th March 2006, 11:13
YES! You li'l ripper! This works a treat. So much easier than patching the avi headers of dud files.