mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-19 13:20:52 +00:00
Print an error if the encoder doesn't produce an IDR frame on demand
This commit is contained in:
parent
d4d62b7b23
commit
625214776e
@ -1282,6 +1282,10 @@ namespace video {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (frame->key_frame && !(av_packet->flags & AV_PKT_FLAG_KEY)) {
|
||||
BOOST_LOG(error) << "Encoder did not produce IDR frame when requested!"sv;
|
||||
}
|
||||
|
||||
if (session.inject) {
|
||||
if (session.inject == 1) {
|
||||
auto h264 = cbs::make_sps_h264(ctx.get(), av_packet);
|
||||
|
Loading…
x
Reference in New Issue
Block a user