diff mbox

[FFmpeg-devel] lavfi/deinterlace_vaapi: fix can't show full option information.

Message ID aae50133-ceee-faf3-2e00-e9e9b2b174c5@gmail.com
State Accepted
Commit 383804edd812410219a097e2bf3efac8a8b4562a
Headers show

Commit Message

Jun Zhao Jan. 17, 2018, 12:19 a.m. UTC
From af8982bddc1e5b430ba12fc155676ee71f598c0a Mon Sep 17 00:00:00 2001
From: Jun Zhao <jun.zhao@intel.com>
Date: Tue, 16 Jan 2018 22:44:02 +0800
Subject: [PATCH] lavfi/deinterlace_vaapi: fix can't show full option
 information.

use ffmpeg -h filter=deinterlace_vaapi can't get full help information,
the root cause is not setting the flags fileld in options.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
---
 libavfilter/vf_deinterlace_vaapi.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Comments

Michael Niedermayer Jan. 17, 2018, 7:04 p.m. UTC | #1
On Wed, Jan 17, 2018 at 08:19:38AM +0800, Jun Zhao wrote:
> 

>  vf_deinterlace_vaapi.c |   14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 4223a9ff8b91e93ca66ce0225762879cfb4e0247  0001-lavfi-deinterlace_vaapi-fix-can-t-show-full-option-i.patch
> From af8982bddc1e5b430ba12fc155676ee71f598c0a Mon Sep 17 00:00:00 2001
> From: Jun Zhao <jun.zhao@intel.com>
> Date: Tue, 16 Jan 2018 22:44:02 +0800
> Subject: [PATCH] lavfi/deinterlace_vaapi: fix can't show full option
>  information.
> 
> use ffmpeg -h filter=deinterlace_vaapi can't get full help information,
> the root cause is not setting the flags fileld in options.
> 
> Signed-off-by: Jun Zhao <jun.zhao@intel.com>
> ---
>  libavfilter/vf_deinterlace_vaapi.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)

will apply

thanks

[...]
diff mbox

Patch

diff --git a/libavfilter/vf_deinterlace_vaapi.c b/libavfilter/vf_deinterlace_vaapi.c
index 44c5ae7642..a38da5d57b 100644
--- a/libavfilter/vf_deinterlace_vaapi.c
+++ b/libavfilter/vf_deinterlace_vaapi.c
@@ -615,22 +615,22 @@  static const AVOption deint_vaapi_options[] = {
       OFFSET(mode), AV_OPT_TYPE_INT, { .i64 = VAProcDeinterlacingNone },
       VAProcDeinterlacingNone, VAProcDeinterlacingCount - 1, FLAGS, "mode" },
     { "default", "Use the highest-numbered (and therefore possibly most advanced) deinterlacing algorithm",
-      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingNone }, .unit = "mode" },
+      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingNone }, 0, 0, FLAGS, "mode" },
     { "bob", "Use the bob deinterlacing algorithm",
-      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingBob }, .unit = "mode" },
+      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingBob }, 0, 0, FLAGS, "mode" },
     { "weave", "Use the weave deinterlacing algorithm",
-      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingWeave }, .unit = "mode" },
+      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingWeave }, 0, 0, FLAGS,  "mode" },
     { "motion_adaptive", "Use the motion adaptive deinterlacing algorithm",
-      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingMotionAdaptive }, .unit = "mode" },
+      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingMotionAdaptive }, 0, 0, FLAGS, "mode" },
     { "motion_compensated", "Use the motion compensated deinterlacing algorithm",
-      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingMotionCompensated }, .unit = "mode" },
+      0, AV_OPT_TYPE_CONST, { .i64 = VAProcDeinterlacingMotionCompensated }, 0, 0, FLAGS, "mode" },
 
     { "rate", "Generate output at frame rate or field rate",
       OFFSET(field_rate), AV_OPT_TYPE_INT, { .i64 = 1 }, 1, 2, FLAGS, "rate" },
     { "frame", "Output at frame rate (one frame of output for each field-pair)",
-      0, AV_OPT_TYPE_CONST, { .i64 = 1 }, .unit = "rate" },
+      0, AV_OPT_TYPE_CONST, { .i64 = 1 }, 0, 0, FLAGS, "rate" },
     { "field", "Output at field rate (one frame of output for each field)",
-      0, AV_OPT_TYPE_CONST, { .i64 = 2 }, .unit = "rate" },
+      0, AV_OPT_TYPE_CONST, { .i64 = 2 }, 0, 0, FLAGS, "rate" },
 
     { "auto", "Only deinterlace fields, passing frames through unchanged",
       OFFSET(auto_enable), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, FLAGS },