[FFmpeg-cvslog] libavdevice/gdigrab: fix ffmpeg -devices doesn't show gdigrab

Jun Zhao git at videolan.org
Fri May 17 16:53:35 EEST 2019


ffmpeg | branch: master | Jun Zhao <barryjzhao at tencent.com> | Fri May 17 15:35:28 2019 +0800| [206f72d0f2a9a5423343ce2df6e03143f5a6cc48] | committer: Jun Zhao

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 at gmail.com>
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=206f72d0f2a9a5423343ce2df6e03143f5a6cc48
---

 libavdevice/gdigrab.c | 1 +
 1 file changed, 1 insertion(+)

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 */



More information about the ffmpeg-cvslog mailing list