fix ffmpeg videotoolbox wrong log (#10413)

* Fix ffmpeg videotoolbox wrong log when changing bitrate
* Let qsv support abr, and it's safe for qsv to changing bitrate.

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2025-01-02 22:19:30 +08:00
committed by GitHub
parent 7c2d62237f
commit 40999c3211
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ index da7b291b03..3c866177f5 100644
+ int status = VTSessionSetProperty(vtctx->session,
+ kVTCompressionPropertyKey_AverageBitRate,
+ bit_rate_num);
+ if (!status) {
+ if (status) {
+ av_log(avctx, AV_LOG_ERROR, "Error: cannot set average bit rate: %d\n", status);
+ }
+ }