[FFmpeg-devel] [PATCH 1/1] avdevice/gdigrab remove CAPTUREBLT flag

fgodtdev at hotmail.com fgodtdev at hotmail.com
Mon Jan 27 12:23:52 EET 2020


 
From: fgodtdev
Date: 2020-01-22 10:19
To: ffmpeg-devel
CC: FgoDt
Subject: [PATCH 1/1] avdevice/gdigrab remove CAPTUREBLT flag
From: FgoDt <fgodtdev at hotmail.com>
 
Remove CAPTUREBLT flag, CAPTUREBLT flag may make mouse flicker.
Discussion details see:https://patchwork.ffmpeg.org/project/ffmpeg/patch/HK2PR03MB4596AB273414D034C0F0D34EC63B0@HK2PR03MB4596.apcprd03.prod.outlook.com/
 
Signed-off-by: fgodt <fgodtdev at hotmail.com>
---
libavdevice/gdigrab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/libavdevice/gdigrab.c b/libavdevice/gdigrab.c
index f4444406fa..f6075e4c6c 100644
--- a/libavdevice/gdigrab.c
+++ b/libavdevice/gdigrab.c
@@ -575,7 +575,7 @@ static int gdigrab_read_packet(AVFormatContext *s1, AVPacket *pkt)
                 clip_rect.right - clip_rect.left,
                 clip_rect.bottom - clip_rect.top,
                 source_hdc,
-                clip_rect.left, clip_rect.top, SRCCOPY | CAPTUREBLT)) {
+                clip_rect.left, clip_rect.top, SRCCOPY )) {
         WIN32_API_ERROR("Failed to capture image");
         return AVERROR(EIO);
     }
-- 
2.23.0

Need review 

fgodt
 


More information about the ffmpeg-devel mailing list