[MPlayer-dev-eng] [PATCH] Fix QuickTime emulated OSErr type

Steinar H. Gunderson sgunderson at bigfoot.com
Thu Mar 4 18:23:52 CET 2010


The OSErr type on Mac OS X is int16_t, not int32_t (see
http://developer.apple.com/mac/library/documentation/QuickTime/Reference/QTRef_DataTypes/Reference/reference.html).
The upper 16 bits will typically be something random (they're entirely
undefined). Change the type so it's right; a few places tried to compensate
for this by masking out the upper bits, but a few places also missed them,
which made for unpredictable behavior.

/* Steinar */
-- 
Homepage: http://www.sesse.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quicktime-oserr-type.diff
Type: text/x-diff
Size: 2872 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100304/e4e5eaa5/attachment.diff>


More information about the MPlayer-dev-eng mailing list