Mercurial > mplayer.hg
comparison libmpcodecs/ve_qtvideo.c @ 30812:4c3685b029f7
Fix QuickTime emulated OSErr type.
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.
author | sesse |
---|---|
date | Sat, 06 Mar 2010 11:12:32 +0000 |
parents | a972c1a4a012 |
children | 8df8a7c20f46 |
comparison
equal
deleted
inserted
replaced
30811:50e0f6942e43 | 30812:4c3685b029f7 |
---|---|
67 CTabHandle cTable, | 67 CTabHandle cTable, |
68 /*GDHandle*/void* aGDevice, /*unused anyway*/ | 68 /*GDHandle*/void* aGDevice, /*unused anyway*/ |
69 GWorldFlags flags, | 69 GWorldFlags flags, |
70 void *baseAddr, | 70 void *baseAddr, |
71 long rowBytes); | 71 long rowBytes); |
72 static OSErr (*NewHandleClear)(Size byteCount); | 72 static Handle (*NewHandleClear)(Size byteCount); |
73 static OSErr (*CompressSequenceBegin) ( | 73 static OSErr (*CompressSequenceBegin) ( |
74 ImageSequence *seqID, | 74 ImageSequence *seqID, |
75 PixMapHandle src, | 75 PixMapHandle src, |
76 PixMapHandle prev, | 76 PixMapHandle prev, |
77 const Rect *srcRect, | 77 const Rect *srcRect, |