diff mbox

[FFmpeg-devel] avfilter/vf_*_qsv: Fix flags

Message ID 20171112170811.26376-1-michael@niedermayer.cc
State Accepted
Commit 1828c549c3ecd45d54ff03aee784b00a41f0e69e
Headers show

Commit Message

Michael Niedermayer Nov. 12, 2017, 5:08 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavfilter/vf_overlay_qsv.c | 2 +-
 libavfilter/vf_vpp_qsv.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Thompson Nov. 12, 2017, 5:42 p.m. UTC | #1
On 12/11/17 17:08, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  libavfilter/vf_overlay_qsv.c | 2 +-
>  libavfilter/vf_vpp_qsv.c     | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavfilter/vf_overlay_qsv.c b/libavfilter/vf_overlay_qsv.c
> index 471576e35a..1f50d4bb21 100644
> --- a/libavfilter/vf_overlay_qsv.c
> +++ b/libavfilter/vf_overlay_qsv.c
> @@ -42,7 +42,7 @@
>  #define OVERLAY 1
>  
>  #define OFFSET(x) offsetof(QSVOverlayContext, x)
> -#define FLAGS AV_OPT_FLAG_VIDEO_PARAM
> +#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
>  
>  enum var_name {
>      VAR_MAIN_iW,     VAR_MW,
> diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c
> index 86af017d2e..eb2f1cc7eb 100644
> --- a/libavfilter/vf_vpp_qsv.c
> +++ b/libavfilter/vf_vpp_qsv.c
> @@ -37,7 +37,7 @@
>  #include "qsvvpp.h"
>  
>  #define OFFSET(x) offsetof(VPPContext, x)
> -#define FLAGS AV_OPT_FLAG_VIDEO_PARAM
> +#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
>  
>  /* number of video enhancement filters */
>  #define ENH_FILTERS_COUNT (5)
> 

LGTM.

Thanks,

- Mark
Michael Niedermayer Nov. 13, 2017, 2:47 a.m. UTC | #2
On Sun, Nov 12, 2017 at 05:42:20PM +0000, Mark Thompson wrote:
> On 12/11/17 17:08, Michael Niedermayer wrote:
> > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> > ---
> >  libavfilter/vf_overlay_qsv.c | 2 +-
> >  libavfilter/vf_vpp_qsv.c     | 2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/libavfilter/vf_overlay_qsv.c b/libavfilter/vf_overlay_qsv.c
> > index 471576e35a..1f50d4bb21 100644
> > --- a/libavfilter/vf_overlay_qsv.c
> > +++ b/libavfilter/vf_overlay_qsv.c
> > @@ -42,7 +42,7 @@
> >  #define OVERLAY 1
> >  
> >  #define OFFSET(x) offsetof(QSVOverlayContext, x)
> > -#define FLAGS AV_OPT_FLAG_VIDEO_PARAM
> > +#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
> >  
> >  enum var_name {
> >      VAR_MAIN_iW,     VAR_MW,
> > diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c
> > index 86af017d2e..eb2f1cc7eb 100644
> > --- a/libavfilter/vf_vpp_qsv.c
> > +++ b/libavfilter/vf_vpp_qsv.c
> > @@ -37,7 +37,7 @@
> >  #include "qsvvpp.h"
> >  
> >  #define OFFSET(x) offsetof(VPPContext, x)
> > -#define FLAGS AV_OPT_FLAG_VIDEO_PARAM
> > +#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
> >  
> >  /* number of video enhancement filters */
> >  #define ENH_FILTERS_COUNT (5)
> > 
> 
> LGTM.

will apply

thx

[...]
diff mbox

Patch

diff --git a/libavfilter/vf_overlay_qsv.c b/libavfilter/vf_overlay_qsv.c
index 471576e35a..1f50d4bb21 100644
--- a/libavfilter/vf_overlay_qsv.c
+++ b/libavfilter/vf_overlay_qsv.c
@@ -42,7 +42,7 @@ 
 #define OVERLAY 1
 
 #define OFFSET(x) offsetof(QSVOverlayContext, x)
-#define FLAGS AV_OPT_FLAG_VIDEO_PARAM
+#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
 
 enum var_name {
     VAR_MAIN_iW,     VAR_MW,
diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c
index 86af017d2e..eb2f1cc7eb 100644
--- a/libavfilter/vf_vpp_qsv.c
+++ b/libavfilter/vf_vpp_qsv.c
@@ -37,7 +37,7 @@ 
 #include "qsvvpp.h"
 
 #define OFFSET(x) offsetof(VPPContext, x)
-#define FLAGS AV_OPT_FLAG_VIDEO_PARAM
+#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
 
 /* number of video enhancement filters */
 #define ENH_FILTERS_COUNT (5)