Merge pull request #1007 from ruil2/gmp_idr
add IDR processing in gmp wrapper
This commit is contained in:
commit
542f8fc053
@ -331,6 +331,15 @@ class OpenH264VideoEncoder : public GMPVideoEncoder {
|
||||
GMPVideoFrameType frame_type) {
|
||||
SFrameBSInfo encoded;
|
||||
|
||||
if (frame_type == kGMPKeyFrame) {
|
||||
encoder_->ForceIntraFrame (true);
|
||||
if (!inputImage)
|
||||
return;
|
||||
}
|
||||
if (!inputImage) {
|
||||
GMPLOG (GL_ERROR, "no input image");
|
||||
return;
|
||||
}
|
||||
SSourcePicture src;
|
||||
|
||||
src.iColorFormat = videoFormatI420;
|
||||
|
Loading…
Reference in New Issue
Block a user