shithub: openh264

Download patch

ref: e48cf9f4718a74196c474aeadee4c8ad48891ef4
parent: 28469ab3dccc02506253e5c1359869d6ecaa6143
parent: 095bb83e77a988dae45115e3348fc4a1c4440151
author: sijchen <[email protected]>
date: Fri Jan 30 05:25:19 EST 2015

Merge pull request #1769 from ruil2/status

add screen content type setting

--- a/module/gmp-openh264.cpp
+++ b/module/gmp-openh264.cpp
@@ -226,6 +226,8 @@
 
     // Translate parameters.
     param.iUsageType = CAMERA_VIDEO_REAL_TIME;
+    if(codecSettings.mMode == kGMPScreensharing)
+      param.iUsageType = SCREEN_CONTENT_REAL_TIME;
     param.iPicWidth = codecSettings.mWidth;
     param.iPicHeight = codecSettings.mHeight;
     param.iRCMode = RC_BITRATE_MODE;