X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_framepack.c;h=be85f85cf90a6a5ada9d32ed087dae3cfe9d1c90;hb=130a8e0eef2f81e0d853117e417b650c3e16d1b7;hp=e9b9ed1362bfea1eb3be3519a8c29369acd66434;hpb=8f454c31545459b668007ae5d94625f3a97686f8;p=ffmpeg diff --git a/libavfilter/vf_framepack.c b/libavfilter/vf_framepack.c index e9b9ed1362b..be85f85cf90 100644 --- a/libavfilter/vf_framepack.c +++ b/libavfilter/vf_framepack.c @@ -315,7 +315,7 @@ static int request_frame(AVFilterLink *outlink) #define OFFSET(x) offsetof(FramepackContext, x) #define V AV_OPT_FLAG_VIDEO_PARAM -static const AVOption options[] = { +static const AVOption framepack_options[] = { { "format", "Frame pack output format", OFFSET(format), AV_OPT_TYPE_INT, { .i64 = AV_STEREO3D_SIDEBYSIDE }, 0, INT_MAX, .flags = V, .unit = "format" }, { "sbs", "Views are packed next to each other", 0, AV_OPT_TYPE_CONST, @@ -331,12 +331,7 @@ static const AVOption options[] = { { NULL }, }; -static const AVClass framepack_class = { - .class_name = "framepack", - .item_name = av_default_item_name, - .option = options, - .version = LIBAVUTIL_VERSION_INT, -}; +AVFILTER_DEFINE_CLASS(framepack); static const AVFilterPad framepack_inputs[] = { {