Mercurial > libavformat.hg
diff utils.c @ 1314:62a205694fbe libavformat
Make OFFSET() reuse offsetof
| author | takis |
|---|---|
| date | Thu, 14 Sep 2006 13:51:54 +0000 |
| parents | dcefff960aeb |
| children | d93c1458d7be |
line wrap: on
line diff
--- a/utils.c Thu Sep 14 12:04:07 2006 +0000 +++ b/utils.c Thu Sep 14 13:51:54 2006 +0000 @@ -458,7 +458,7 @@ else return "NULL"; } -#define OFFSET(x) (int)&((AVFormatContext*)0)->x +#define OFFSET(x) offsetof(AVFormatContext,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 E AV_OPT_FLAG_ENCODING_PARAM
