diff options
author | James Almer <jamrial@gmail.com> | 2018-03-17 12:03:32 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-03-17 12:16:43 -0300 |
commit | 1410454c8b0b35ccc5292ab5e639b29b326a80da (patch) | |
tree | 048ac83ea2ec3a417a2827cfd26b3d4a7975489f /libavcodec/hapqa_extract_bsf.c | |
parent | edce64c9e98f32579dddb5dccf590034686decc2 (diff) | |
download | ffmpeg-1410454c8b0b35ccc5292ab5e639b29b326a80da.tar.gz |
Partially revert "avcodec/hapqa_extract: remove the AVOption flags
Re add AVOptions flags, using the new one meant for bsfs.
This partially reverts commit f706cdda56.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hapqa_extract_bsf.c')
-rw-r--r-- | libavcodec/hapqa_extract_bsf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/hapqa_extract_bsf.c b/libavcodec/hapqa_extract_bsf.c index 652f79a7fe..167d22d06e 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 }, }; |