mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
fix(macos): fix broken streaming on MacOS (#2485)
This commit is contained in:
@@ -909,7 +909,9 @@ namespace video {
|
||||
},
|
||||
{}, // SDR-specific options
|
||||
{}, // HDR-specific options
|
||||
{}, // Fallback options
|
||||
{
|
||||
{ "flags"s, "-low_delay" },
|
||||
}, // Fallback options
|
||||
std::nullopt,
|
||||
"h264_videotoolbox"s,
|
||||
},
|
||||
@@ -1451,7 +1453,10 @@ namespace video {
|
||||
}
|
||||
}
|
||||
|
||||
ctx->flags |= (AV_CODEC_FLAG_CLOSED_GOP | AV_CODEC_FLAG_LOW_DELAY);
|
||||
// We forcefully reset the flags to avoid clash on reuse of AVCodecContext
|
||||
ctx->flags = 0;
|
||||
ctx->flags |= AV_CODEC_FLAG_CLOSED_GOP | AV_CODEC_FLAG_LOW_DELAY;
|
||||
|
||||
ctx->flags2 |= AV_CODEC_FLAG2_FAST;
|
||||
|
||||
auto avcodec_colorspace = avcodec_colorspace_from_sunshine_colorspace(colorspace);
|
||||
|
||||
Reference in New Issue
Block a user