kmsgrab: add category for kmsgrab
authorJun Zhao <mypopydev@gmail.com>
Mon, 26 Mar 2018 00:22:07 +0000 (08:22 +0800)
committerMark Thompson <sw@jkqxz.net>
Mon, 26 Mar 2018 21:39:12 +0000 (22:39 +0100)
Makes kmsgrab visible in "ffmpeg -devices".

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavdevice/kmsgrab.c

index 6a6de09..d0de774 100644 (file)
@@ -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 = {