parent
779a8d8810
commit
91965bca8c
2 changed files with 3 additions and 2 deletions
|
|
@ -1479,7 +1479,8 @@ void DivSample::render(unsigned int formatMask) {
|
|||
}
|
||||
}
|
||||
if (NOT_IN_FORMAT(DIV_SAMPLE_DEPTH_BRR)) { // BRR
|
||||
int sampleCount=loop?loopEnd:samples;
|
||||
int sampleCount=isLoopable()?loopEnd:samples;
|
||||
if (sampleCount>(int)samples) sampleCount=samples;
|
||||
if (!initInternal(DIV_SAMPLE_DEPTH_BRR,sampleCount)) return;
|
||||
brrEncode(data16,dataBRR,sampleCount,loop?loopStart:-1,brrEmphasis,brrNoFilter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue