summaryrefslogtreecommitdiff
path: root/libavcodec/hapqa_extract_bsf.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-03-13 22:08:29 -0300
committerJames Almer <jamrial@gmail.com>2018-03-14 10:55:05 -0300
commitf706cdda5694d2fce24bfb2ee81a4382327fa760 (patch)
treedea9c45a65aca69ca20775c560998c336c80184b /libavcodec/hapqa_extract_bsf.c
parent6010537956d5a7260f2dd52184779fe01a085a2b (diff)
avcodec/hapqa_extract: remove the AVOption flags
These two are not used for bitstream filters. Reviewed-by: Martin Vignali <martin.vignali@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hapqa_extract_bsf.c')
-rw-r--r--libavcodec/hapqa_extract_bsf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/hapqa_extract_bsf.c b/libavcodec/hapqa_extract_bsf.c
index ee5dc191f7..652f79a7fe 100644
--- a/libavcodec/hapqa_extract_bsf.c
+++ b/libavcodec/hapqa_extract_bsf.c
@@ -110,11 +110,10 @@ static const enum AVCodecID codec_ids[] = {
};
#define OFFSET(x) offsetof(HapqaExtractContext, x)
-#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
static const AVOption options[] = {
- { "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" },
+ { "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" },
{ NULL },
};