aboutsummaryrefslogtreecommitdiff
path: root/src/myriad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/myriad.cpp')
-rw-r--r--src/myriad.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/myriad.cpp b/src/myriad.cpp
index 9d7a849..748350c 100644
--- a/src/myriad.cpp
+++ b/src/myriad.cpp
@@ -555,6 +555,7 @@ int Bu::Myriad::streamAddBlock( Stream *pStream )
555 int iBlock = findEmptyBlock(); 555 int iBlock = findEmptyBlock();
556 pStream->aBlocks.append( iBlock ); 556 pStream->aBlocks.append( iBlock );
557 bsBlockUsed.setBit( iBlock ); 557 bsBlockUsed.setBit( iBlock );
558 bHeaderChanged = true;
558 iUsed++; 559 iUsed++;
559 return iBlock; 560 return iBlock;
560} 561}
@@ -569,7 +570,7 @@ void Bu::Myriad::setStreamSize( Stream *pStream, long iSize )
569 { 570 {
570 // Shrink 571 // Shrink
571 for( int iNewSize = pStream->aBlocks.getSize()*iBlockSize; 572 for( int iNewSize = pStream->aBlocks.getSize()*iBlockSize;
572 iNewSize-64 > iSize; iNewSize -= iBlockSize ) 573 iNewSize-iBlockSize > iSize; iNewSize -= iBlockSize )
573 { 574 {
574 if( bsBlockUsed.getBit( pStream->aBlocks.last() ) ) 575 if( bsBlockUsed.getBit( pStream->aBlocks.last() ) )
575 iUsed--; 576 iUsed--;