fix 12-bit raw sample import
This commit is contained in:
parent
8f2e2ec7b2
commit
16920e0e31
|
@ -518,6 +518,9 @@ DivSample* DivEngine::sampleFromFileRaw(const char* path, DivSampleDepth depth,
|
||||||
case DIV_SAMPLE_DEPTH_BRR:
|
case DIV_SAMPLE_DEPTH_BRR:
|
||||||
samples=16*((lenDivided+8)/9);
|
samples=16*((lenDivided+8)/9);
|
||||||
break;
|
break;
|
||||||
|
case DIV_SAMPLE_DEPTH_12BIT:
|
||||||
|
samples=(2+(lenDivided*2))/3;
|
||||||
|
break;
|
||||||
case DIV_SAMPLE_DEPTH_16BIT:
|
case DIV_SAMPLE_DEPTH_16BIT:
|
||||||
samples=(lenDivided+1)/2;
|
samples=(lenDivided+1)/2;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue