diff --git a/AUTHORS b/AUTHORS index d46a592950..652e3aec29 100644 --- a/AUTHORS +++ b/AUTHORS @@ -151,6 +151,7 @@ Yuriy Pavlyshak Yusuke Suzuki Pengfei Han Yingying Ma +Hailin Zhao # END individuals section. # BEGIN organizations section. diff --git a/modules/video_coding/codecs/h264/h264_encoder_impl.cc b/modules/video_coding/codecs/h264/h264_encoder_impl.cc index bc81005199..a3ced2d21e 100644 --- a/modules/video_coding/codecs/h264/h264_encoder_impl.cc +++ b/modules/video_coding/codecs/h264/h264_encoder_impl.cc @@ -590,7 +590,8 @@ int32_t H264EncoderImpl::Encode( if (svc_controllers_[i]) { codec_specific.generic_frame_info = svc_controllers_[i]->OnEncodeDone(layer_frames[0]); - if (send_key_frame && codec_specific.generic_frame_info.has_value()) { + if (encoded_images_[i]._frameType == VideoFrameType::kVideoFrameKey && + codec_specific.generic_frame_info.has_value()) { codec_specific.template_structure = svc_controllers_[i]->DependencyStructure(); }