Print an error if the encoder doesn't produce an IDR frame on demand
This commit is contained in:
parent
d4d62b7b23
commit
625214776e
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue