Commit 18bf17e8 authored by Alexandre Julliard's avatar Alexandre Julliard

quartz: Use FIELD_OFFSET instead of casting a pointer to int.

parent 2e83689b
...@@ -55,7 +55,7 @@ typedef struct BaseMemAllocator ...@@ -55,7 +55,7 @@ typedef struct BaseMemAllocator
static const IMemAllocatorVtbl BaseMemAllocator_VTable; static const IMemAllocatorVtbl BaseMemAllocator_VTable;
static const IMediaSample2Vtbl StdMediaSample2_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) #define INVALID_MEDIA_TIME (((ULONGLONG)0x7fffffff << 32) | 0xffffffff)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment