mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-28 03:13:08 +08:00
Make OFFSET() reuse offsetof
Originally committed as revision 6251 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user