Commit bc033396 authored by takis's avatar takis

Make OFFSET() reuse offsetof


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6251 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e6ec7e18
......@@ -438,7 +438,7 @@ static const char* context_to_name(void* ptr) {
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
......
......@@ -458,7 +458,7 @@ static const char* format_to_name(void* ptr)
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
......
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