Browse Source

avfilter/vf_*_vaapi: Add missing AV_OPT_FLAG_FILTERING_PARAM

Reviewed-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.0
Michael Niedermayer 8 years ago
parent
commit
c87bf5b6d0
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavfilter/vf_misc_vaapi.c
  2. +1
    -1
      libavfilter/vf_procamp_vaapi.c

+ 1
- 1
libavfilter/vf_misc_vaapi.c View File

@@ -226,7 +226,7 @@ static av_cold int sharpness_vaapi_init(AVFilterContext *avctx)
}

#define DOFFSET(x) offsetof(DenoiseVAAPIContext, x)
#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM)
#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
static const AVOption denoise_vaapi_options[] = {
{ "denoise", "denoise level",
DOFFSET(denoise), AV_OPT_TYPE_INT, { .i64 = DENOISE_DEFAULT }, DENOISE_MIN, DENOISE_MAX, .flags = FLAGS },


+ 1
- 1
libavfilter/vf_procamp_vaapi.c View File

@@ -214,7 +214,7 @@ static av_cold int procamp_vaapi_init(AVFilterContext *avctx)
}

#define OFFSET(x) offsetof(ProcampVAAPIContext, x)
#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM)
#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
static const AVOption procamp_vaapi_options[] = {
{ "b", "Output video brightness",
OFFSET(bright), AV_OPT_TYPE_FLOAT, { .dbl = BRIGHTNESS_DEFAULT }, BRIGHTNESS_MIN, BRIGHTNESS_MAX, .flags = FLAGS },


Loading…
Cancel
Save