ref: b3c45946ffc0c125b34c5a307f88670981cec098
parent: f0c6c2b318f7f048f83aac1bd42b5cbac8bdfb2a
author: ruil2 <[email protected]>
date: Fri Mar 7 11:29:12 EST 2014
modify typing format
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -911,19 +911,17 @@
iRet = 1;
goto INSIDE_MEM_FREE;
}
- for(int iLayer = 0;iLayer<MAX_DEPENDENCY_LAYER;iLayer++)
- {
- if(fs.sRecFileName[iLayer][0]!=0)
- {
- SDumpLayer sDumpLayer;
- sDumpLayer.iLayer = iLayer;
- sDumpLayer.pFileName = fs.sRecFileName[iLayer];
- if(cmResultSuccess!=pPtrEnc->SetOption(ENCODER_OPTION_DUMP_FILE,&sDumpLayer)){
- fprintf (stderr, "SetOption ENCODER_OPTION_DUMP_FILE failed!\n");
- iRet = 1;
- goto INSIDE_MEM_FREE;
- }
- }
+ for(int iLayer = 0;iLayer<MAX_DEPENDENCY_LAYER;iLayer++){
+ if(fs.sRecFileName[iLayer][0]!=0){
+ SDumpLayer sDumpLayer;
+ sDumpLayer.iLayer = iLayer;
+ sDumpLayer.pFileName = fs.sRecFileName[iLayer];
+ if(cmResultSuccess!=pPtrEnc->SetOption(ENCODER_OPTION_DUMP_FILE,&sDumpLayer)){
+ fprintf (stderr, "SetOption ENCODER_OPTION_DUMP_FILE failed!\n");
+ iRet = 1;
+ goto INSIDE_MEM_FREE;
+ }
+ }
}
// Inactive with sink with output file handler
if (fs.strBsFile.length() > 0) {
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -940,12 +940,12 @@
break;
case ENCODER_OPTION_DUMP_FILE:{
#ifdef ENABLE_FRAME_DUMP
- if(m_pEncContext->pSvcParam!=NULL){
- SDumpLayer*pDump = (static_cast<SDumpLayer *>(pOption));
- WelsStrncpy(m_pEncContext->pSvcParam->sDependencyLayers[pDump->iLayer].sRecFileName, pDump->pFileName, sizeof(m_pEncContext->pSvcParam->sDependencyLayers[pDump->iLayer].sRecFileName))
- }
+ if(m_pEncContext->pSvcParam!=NULL){
+ SDumpLayer*pDump = (static_cast<SDumpLayer *>(pOption));
+ WelsStrncpy(m_pEncContext->pSvcParam->sDependencyLayers[pDump->iLayer].sRecFileName, pDump->pFileName, sizeof(m_pEncContext->pSvcParam->sDependencyLayers[pDump->iLayer].sRecFileName))
+ }
#endif
- }
+ }
break;
default:
return cmInitParaError;