aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-01 20:51:38 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-01 20:51:38 +0000
commitd534143bd955454553f3cf86fe22d178c6369500 (patch)
tree2e6ab33756999ac6228db12f11d0c169c6e511b5
parent60648e80efa43a513163acb1b744a6c4cdf08c4a (diff)
parent6fb8ecd7fb0f95757714ab7be6bd97ab209600bd (diff)
downloadtremolo-android13-mainline-os-statsd-release.tar.gz
Change-Id: I7737a985860c9ab9bfc34a6a099a02620a9402bd
-rw-r--r--Tremolo/floor0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tremolo/floor0.c b/Tremolo/floor0.c
index 11452c5..cb9657f 100644
--- a/Tremolo/floor0.c
+++ b/Tremolo/floor0.c
@@ -386,7 +386,8 @@ vorbis_info_floor *floor0_info_unpack (vorbis_info *vi,oggpack_buffer *opb){
info->ampdB=oggpack_read(opb,8);
info->numbooks=oggpack_read(opb,4)+1;
- if(info->order<1)goto err_out;
+ /* order must be greater than 1 to calculate p and q parameters for the linear floor value */
+ if(info->order<=1)goto err_out;
if(info->rate<1)goto err_out;
if(info->barkmap<1)goto err_out;