diff options
-rw-r--r-- | include/xine/post.h | 2 | ||||
-rw-r--r-- | src/demuxers/demux_qt.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/xine/post.h b/include/xine/post.h index c7e1e1cf0..31899c489 100644 --- a/include/xine/post.h +++ b/include/xine/post.h @@ -397,7 +397,7 @@ static xine_post_api_parameter_t temp_p[] = { #define PARAM_ITEM( param_type, var, enumv, min, max, readonly, descr ) \ { param_type, #var, sizeof(temp_s.var), \ - (char*)&temp_s.var-(char*)&temp_s, enumv, min, max, readonly, descr }, + offsetof(__typeof__(temp_s), var), enumv, min, max, readonly, descr }, #define END_PARAM_DESCR( name ) \ { POST_PARAM_TYPE_LAST, NULL, 0, 0, NULL, 0, 0, 1, NULL } \ diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c index 41b5c5b5b..db01ad87e 100644 --- a/src/demuxers/demux_qt.c +++ b/src/demuxers/demux_qt.c @@ -133,8 +133,9 @@ typedef unsigned int qt_atom; #define RMVC_ATOM QT_ATOM('r', 'm', 'v', 'c') #define QTIM_ATOM QT_ATOM('q', 't', 'i', 'm') -/* placeholder for cutting and pasting */ +/* placeholder for cutting and pasting #define _ATOM QT_ATOM('', '', '', '') +*/ #define ATOM_PREAMBLE_SIZE 8 #define PALETTE_COUNT 256 |