-3
我有一個AVOption
結構:語法錯誤:在'。'之前缺少'{'
static const AVOption options[] = {
COMMON_OPTIONS // error here
{ NULL }
};
和COMMON_OPTIONS
被定義爲:
#define COMMON_OPTIONS \
{ "interp", "select interpolation mode", OFFSET(interpolation), AV_OPT_TYPE_INT, {.i64=INTERPOLATE_TETRAHEDRAL}, 0, NB_INTERP_MODE-1, FLAGS, "interp_mode" }, \
{NULL}
我得到一個錯誤:
2>c:\users\awki6\desktop\ffmpeg\libavfilter\vsrc_testsrc.cpp(98): error C2143: syntax error : missing '}' before '.'
是什麼'COMMON_OPTIONS'擴大到? – Kninnug
#define COMMON_OPTIONS \ {「interp」,「select interpolation mode」,OFFSET(interpolation),AV_OPT_TYPE_INT,{.i64 = INTERPOLATE_TETRAHEDRAL},0,NB_INTERP_MODE-1,FLAGS,「interp_mode」},\ {NULL} – JAYANTHI