[FFmpeg-devel] [PATCH] kmsgrab: add category for kmsgrab

Mark Thompson sw at jkqxz.net
Tue Mar 27 01:01:04 EEST 2018


On 26/03/18 01:22, Jun Zhao wrote:
> 
> From fc9b04d95b1e21fa9985dc611fcf43d2a4c635c0 Mon Sep 17 00:00:00 2001
> From: Jun Zhao <mypopydev at gmail.com>
> Date: Fri, 23 Mar 2018 21:32:03 +0800
> Subject: [PATCH] kmsgrab: add category for kmsgrab
> 
> add category for kmsgrab, then we can display kmsgrab in
> "ffmpeg -devices".
> 
> Signed-off-by: Jun Zhao <mypopydev at gmail.com>
> ---
>  libavdevice/kmsgrab.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavdevice/kmsgrab.c b/libavdevice/kmsgrab.c
> index 6a6de09c37..d0de774871 100644
> --- a/libavdevice/kmsgrab.c
> +++ b/libavdevice/kmsgrab.c
> @@ -451,6 +451,7 @@ static const AVClass kmsgrab_class = {
>      .item_name  = av_default_item_name,
>      .option     = options,
>      .version    = LIBAVUTIL_VERSION_INT,
> +    .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
>  };
>  
>  AVInputFormat ff_kmsgrab_demuxer = {
> -- 
> 2.14.1
> 

Sure, will apply soon.

Thanks,

- Mark


More information about the ffmpeg-devel mailing list