quartz: Use FIELD_OFFSET instead of casting a pointer to int.
This commit is contained in:
parent
2e83689b77
commit
18bf17e828
|
@ -55,7 +55,7 @@ typedef struct BaseMemAllocator
|
|||
static const IMemAllocatorVtbl BaseMemAllocator_VTable;
|
||||
static const IMediaSample2Vtbl StdMediaSample2_VTable;
|
||||
|
||||
#define AM_SAMPLE2_PROP_SIZE_WRITABLE (unsigned int)(&((AM_SAMPLE2_PROPERTIES *)0)->pbBuffer)
|
||||
#define AM_SAMPLE2_PROP_SIZE_WRITABLE FIELD_OFFSET(AM_SAMPLE2_PROPERTIES, pbBuffer)
|
||||
|
||||
#define INVALID_MEDIA_TIME (((ULONGLONG)0x7fffffff << 32) | 0xffffffff)
|
||||
|
||||
|
|
Loading…
Reference in New Issue