shithub: openh264

Download patch

ref: 542f8fc0534b2ea46e468511142a7097823799ed
parent: e4220b7b55925ff2feacc2f5944dc528629b57ad
parent: 99cfac6aa0d9486f1aea89ddbde4c80eb456ef49
author: huili2 <huili2@cisco.com>
date: Wed Jun 25 11:57:03 EDT 2014

Merge pull request #1007 from ruil2/gmp_idr

add IDR processing in gmp wrapper

--- a/module/gmp-openh264.cpp
+++ b/module/gmp-openh264.cpp
@@ -331,6 +331,15 @@
                  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;