shithub: openh264

Download patch

ref: 7ccc377d55846bc65d65779c3baa898a8faa7603
parent: 2d3fc37a077e61f512f4db01bc6cb090547ccb1d
parent: 8effa45eddc9e2e3d6b337095c3b9ab12463ff4f
author: HaiboZhu <[email protected]>
date: Wed Jun 1 05:03:49 EDT 2016

Merge pull request #2480 from ruil2/fix

fix removing parameter setting wrongly 

--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -225,7 +225,9 @@
         pSvcParam.iUsageType = (EUsageType)atoi (strTag[1].c_str());
       }else if (strTag[0].compare ("SimulcastAVC") == 0) {
         pSvcParam.bSimulcastAVC = atoi (strTag[1].c_str()) ? true : false;
-      }else if (strTag[0].compare ("SourceHeight") == 0) {
+      }else if (strTag[0].compare ("SourceWidth") == 0) {
+        pSrcPic->iPicWidth = atoi (strTag[1].c_str());
+      } else if (strTag[0].compare ("SourceHeight") == 0) {
         pSrcPic->iPicHeight = atoi (strTag[1].c_str());
       } else if (strTag[0].compare ("InputFile") == 0) {
         if (strTag[1].length() > 0)