ref: 78f3b5c5f6f58682d70872378b9aa64704d76435
parent: 0c326fa3026f78fa94ad5c0e6888f597341a5996
author: sijchen <[email protected]>
date: Fri May 16 07:18:14 EDT 2014
add minimum buffer size
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -1285,7 +1285,7 @@
fCompressRatioThr = COMPRESS_RATIO_THR;
- iLayerBsSize = WELS_ROUND (((3 * fDlp->iFrameWidth * fDlp->iFrameHeight) >> 1) * fCompressRatioThr);
+ iLayerBsSize = WELS_ROUND (((3 * fDlp->iFrameWidth * fDlp->iFrameHeight) >> 1) * fCompressRatioThr) + MAX_MACROBLOCK_SIZE_IN_BYTE;
iLayerBsSize = WELS_ALIGN (iLayerBsSize, 4); // 4 bytes alinged
iVclLayersBsSizeCount += iLayerBsSize;
++ iIndex;