Mercurial > libavcodec.hg
changeset 3719:a565d89ff032 libavcodec
Make OFFSET() reuse offsetof
author | takis |
---|---|
date | Thu, 14 Sep 2006 13:51:54 +0000 |
parents | 73626972ccbb |
children | c52a1096385e |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Thu Sep 14 11:23:41 2006 +0000 +++ b/utils.c Thu Sep 14 13:51:54 2006 +0000 @@ -438,7 +438,7 @@ return "NULL"; } -#define OFFSET(x) (int)&((AVCodecContext*)0)->x +#define OFFSET(x) offsetof(AVCodecContext,x) #define DEFAULT 0 //should be NAN but it doesnt work as its not a constant in glibc as required by ANSI/ISO C //these names are too long to be readable #define V AV_OPT_FLAG_VIDEO_PARAM