Using short blocks a bit more often now that we have variable tf resolution
This commit is contained in:
parent
2ed5e67a2e
commit
e34c85a0cc
1 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ static int transient_analysis(const celt_word32 * restrict in, int len, int C,
|
||||||
}
|
}
|
||||||
n = -1;
|
n = -1;
|
||||||
|
|
||||||
threshold = MULT16_32_Q15(QCONST16(.2f,15),begin[len]);
|
threshold = MULT16_32_Q15(QCONST16(.4f,15),begin[len]);
|
||||||
/* If the following condition isn't met, there's just no way
|
/* If the following condition isn't met, there's just no way
|
||||||
we'll have a transient*/
|
we'll have a transient*/
|
||||||
if (*frame_max < threshold)
|
if (*frame_max < threshold)
|
||||||
|
@ -307,7 +307,7 @@ static int transient_analysis(const celt_word32 * restrict in, int len, int C,
|
||||||
*frame_max = begin[len-overlap];
|
*frame_max = begin[len-overlap];
|
||||||
|
|
||||||
RESTORE_STACK;
|
RESTORE_STACK;
|
||||||
return ratio > 4;
|
return ratio > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Apply window and compute the MDCT for all sub-frames and
|
/** Apply window and compute the MDCT for all sub-frames and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue