shithub: openh264

Download patch

ref: c0808f1f1db3a81fdf68ff63ebdc907cd57c6a0a
parent: 0fb5242b86eda91b4d4f94090b951b63c518e8ec
parent: 97351a5cdfbbc7e13ab73cac904f0993141229d3
author: HaiboZhu <haibozhu@cisco.com>
date: Fri Aug 14 04:58:22 EDT 2015

Merge pull request #2072 from sijchen/fix_readcfg

[Encoder] fix the range of writable cfg to avoid problem

--- a/codec/console/common/src/read_config.cpp
+++ b/codec/console/common/src/read_config.cpp
@@ -105,7 +105,7 @@
       bCommentFlag = true;
     if (!bCommentFlag) {
       if (kCh == '\t' || kCh == ' ') {
-        if (nTagNum >= kiValSize)
+        if (nTagNum >= kiValSize-1)
           break;
         if (! (*strTags).empty()) {
           ++ nTagNum;