[XviD-devel] VFW mistake

Dark_Sylinc hgoldberg at ciudad.com.ar
Sun May 16 09:48:02 CEST 2004


Hello,
in file ./vfw/src/codec.c,  in the function decompress_get_format() (line ~895), it sets the image size to the output header by calculating width*height*bpp
THIS IS WRONG. That size is in bits, but the standard bitmap header requests the size in bytes. Since 8 bits = 1 byte. we should calcute width*height*(bpp/8)
This mistake may crash some programs who use VFW and do not calculate an uncompressed image size, relying on what the VFW says.

Dark Sylinc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://edu.bnhof.de/pipermail/xvid-devel/attachments/20040516/50d43bb7/attachment.html


More information about the XviD-devel mailing list