shithub: openh264

Download patch

ref: 301fd58c045e6e82618f014436133c01405a8a38
parent: 5d616714c4cdd30287e2c6a8aa485c2fc6c68b84
author: Varun B Patil <varun.basavaraj.patil@gmail.com>
date: Tue Dec 17 07:15:38 EST 2013

Replace some fancy stuff with simple function

--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -1414,10 +1414,7 @@
   if (argc < 2) {
     goto exit;
   } else {
-    string	strCfgFileName = argv[1];
-    basic_string <char>::size_type index;
-    index = strCfgFileName.rfind (".cfg");	// check configuration type (like .cfg?)
-    if (index == std::string::npos) {
+    if (!strstr(argv[1], ".cfg")) { // check configuration type (like .cfg?)
       if (argc > 2) {
         iRet = ProcessEncodingSvcWithParam (pSVCEncoder, argc, argv);
         if (iRet != 0)