forked from rustdesk/rustdesk
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix image blur occurring at the moment of changing quality (rustdesk#…
…10399) 1. Fix this issue occurs on FFmepg qsv, FFmpeg nvenc and SDK mfx, other codecs don't have this problem. Clear cache is needed. Signed-off-by: 21pages <[email protected]>
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
res/vcpkg/ffmpeg/patch/0009-fix-nvenc-reconfigure-blur.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From bec8d49e75b37806e1cff39c75027860fde0bfa2 Mon Sep 17 00:00:00 2001 | ||
From: 21pages <[email protected]> | ||
Date: Fri, 27 Dec 2024 08:43:12 +0800 | ||
Subject: [PATCH] fix nvenc reconfigure blur | ||
|
||
Signed-off-by: 21pages <[email protected]> | ||
--- | ||
libavcodec/nvenc.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c | ||
index 2cce478be0..f4c559b7ce 100644 | ||
--- a/libavcodec/nvenc.c | ||
+++ b/libavcodec/nvenc.c | ||
@@ -2741,8 +2741,8 @@ static void reconfig_encoder(AVCodecContext *avctx, const AVFrame *frame) | ||
} | ||
|
||
if (reconfig_bitrate) { | ||
- params.resetEncoder = 1; | ||
- params.forceIDR = 1; | ||
+ params.resetEncoder = 0; | ||
+ params.forceIDR = 0; | ||
|
||
needs_encode_config = 1; | ||
needs_reconfig = 1; | ||
-- | ||
2.43.0.windows.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters