[2/7] avifile: Overwrite dwRate in the audiostream with the nBlockAlign from the wave header

Julius Schwartzenberg julius.schwartzenberg at gmail.com
Tue Dec 29 20:49:06 CST 2009


This patch is independent from the other patches. I hope the non-test 
patches can be applied if the tests have to be skipped for now.

Civilization II actually ships with AVI files that have an incorrect 
dwRate value in their streamheaders. They actually specified 0 instead 
of the proper value causing Wine's avifil32 to incorrectly interpret 
them as variable sample size files. Since the game was hardcoded in such 
a very specific way it expected avifil32 to handle the files, this broke.
Native avifil32 deals with the sample size information in a similar way 
the patch does. The next patch will be a test which proves this is 
really true.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0005-avifile-Overwrite-dwRate-in-the-audiostream-with-the-nBlockAli.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091230/82f068ad/attachment-0001.txt>


More information about the wine-patches mailing list