X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fhapqa_extract_bsf.c;h=5c22184813ddf302aad5fa534c055d6b5556b531;hb=b9dd058f7a9df0119ad1cb7a0b115fbfa77d7cf4;hp=652f79a7fe762026b2c0e22353dac2991aad3a7e;hpb=3c56d6734186336723150d3bcaf3405538710c53;p=ffmpeg diff --git a/libavcodec/hapqa_extract_bsf.c b/libavcodec/hapqa_extract_bsf.c index 652f79a7fe7..5c22184813d 100644 --- a/libavcodec/hapqa_extract_bsf.c +++ b/libavcodec/hapqa_extract_bsf.c @@ -110,10 +110,11 @@ static const enum AVCodecID codec_ids[] = { }; #define OFFSET(x) offsetof(HapqaExtractContext, x) +#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_BSF_PARAM) static const AVOption options[] = { - { "texture", "texture to keep", OFFSET(texture), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, 0, "texture" }, - { "color", "keep HapQ texture", 0, AV_OPT_TYPE_CONST, { .i64 = 0 }, .unit = "texture" }, - { "alpha", "keep HapAlphaOnly texture", 0, AV_OPT_TYPE_CONST, { .i64 = 1 }, .unit = "texture" }, + { "texture", "texture to keep", OFFSET(texture), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, FLAGS, "texture" }, + { "color", "keep HapQ texture", 0, AV_OPT_TYPE_CONST, { .i64 = 0 }, 0, 0, FLAGS, "texture" }, + { "alpha", "keep HapAlphaOnly texture", 0, AV_OPT_TYPE_CONST, { .i64 = 1 }, 0, 0, FLAGS, "texture" }, { NULL }, }; @@ -121,7 +122,7 @@ static const AVClass hapqa_extract_class = { .class_name = "hapqa_extract_bsf", .item_name = av_default_item_name, .option = options, - .version = LIBAVUTIL_VERSION_MAJOR, + .version = LIBAVUTIL_VERSION_INT, }; const AVBitStreamFilter ff_hapqa_extract_bsf = {