Merge pull request #1007 from ruil2/gmp_idr

add IDR processing in gmp wrapper
This commit is contained in:
huili2 2014-06-25 15:57:03 +08:00
commit 542f8fc053

View File

@ -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;