shithub: openh264

Download patch

ref: f68b0811f05938cb99931e0989165b7fd28d0474
parent: 681919da8eaf89213d2243001d8d9069a3d02522
author: ruil2 <[email protected]>
date: Thu Jul 31 11:10:12 EDT 2014

update recontruct frame output

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -3431,9 +3431,8 @@
     iFrameSize += iLayerSize;
 
 #ifdef ENABLE_FRAME_DUMP
-    // Dump reconstruction picture for each sQualityStat layer
     if (iCurDid + 1 < pSvcParam->iSpatialLayerNum) {
-      DumpDependencyRec (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum].sRecFileName[0], iCurDid,
+      DumpDependencyRec (fsnr, &pSvcParam->sDependencyLayers[iCurDid].sRecFileName[0], iCurDid,
                          pCtx->bDependencyRecFlag[iCurDid]);
       pCtx->bDependencyRecFlag[iCurDid] = true;
     }
@@ -3601,9 +3600,9 @@
   }
 
 #ifdef ENABLE_FRAME_DUMP
-  DumpRecFrame (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum -
-                1].sRecFileName[0], pCtx->bRecFlag);	// pDecPic: final reconstruction output
+  DumpRecFrame (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum-1].sRecFileName[0], pCtx->bRecFlag);	// pDecPic: final reconstruction output
   pCtx->bRecFlag = true;
+
 #endif//ENABLE_FRAME_DUMP
 
   ++ pCtx->iCodingIndex;