aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2019-05-17 15:35:28 +0800
committerJun Zhao <barryjzhao@tencent.com>2019-05-17 21:51:20 +0800
commit206f72d0f2a9a5423343ce2df6e03143f5a6cc48 (patch)
tree8bb02e4035aa7e585b5ba163f72cca9aead235ab
parentc3458f06f406dc20e4edbdbf808b47d167e8c2bf (diff)
downloadffmpeg-206f72d0f2a9a5423343ce2df6e03143f5a6cc48.tar.gz
libavdevice/gdigrab: fix ffmpeg -devices doesn't show gdigrab
missed the category AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT lead to ffmpeg -devices doesn't show gdigrab as a input device FIx #7848 Found-by: dangibson Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r--libavdevice/gdigrab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/gdigrab.c b/libavdevice/gdigrab.c
index b226bd0831..f4444406fa 100644
--- a/libavdevice/gdigrab.c
+++ b/libavdevice/gdigrab.c
@@ -647,6 +647,7 @@ static const AVClass gdigrab_class = {
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
+ .category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
};
/** gdi grabber device demuxer declaration */