shithub: openh264

Download patch

ref: b9e16080221f659a01573612aa2299dab0dfd711
parent: 88fded255aebe00098895f4f9d750370ecc7697e
parent: ce448a21d771fd2ecb8239821ad8f88875115d3b
author: sijchen <[email protected]>
date: Wed Mar 12 12:33:51 EDT 2014

Merge pull request #479 from volvet/fix-double-free-crash

fix double free crash in encoder

--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -105,7 +105,7 @@
 }
 static int     g_LevelSetting = 0;
 
-int ParseLayerConfig( CReadConfig cRdLayerCfg, const int iLayer, SEncParamExt& pSvcParam )
+int ParseLayerConfig( CReadConfig & cRdLayerCfg, const int iLayer, SEncParamExt& pSvcParam )
 {
   if (!cRdLayerCfg.ExistFile()) {
     fprintf (stderr, "Unabled to open layer #%d configuration file: %s.\n", iLayer, cRdLayerCfg.GetFileName().c_str());