diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-08-02 03:03:09 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-08-02 03:03:09 +0000 |
commit | 1939a9830d2ebd69351da8296bf3f8ee18babab5 (patch) | |
tree | 2e6ab33756999ac6228db12f11d0c169c6e511b5 | |
parent | 0c85881b1c4a74502899a6c2b2d95fa3eaac1bd9 (diff) | |
parent | 6fb8ecd7fb0f95757714ab7be6bd97ab209600bd (diff) | |
download | tremolo-android13-mainline-extservices-release.tar.gz |
Snap for 8894384 from 6fb8ecd7fb0f95757714ab7be6bd97ab209600bd to mainline-extservices-releaseaml_ext_331814220aml_ext_331412000aml_ext_331312000aml_ext_331112010aml_ext_331012020android13-mainline-extservices-release
Change-Id: I55bd8ab3701e7448a0da1a6a7db59154b8196ae2
-rw-r--r-- | Tremolo/floor0.c | 3 |
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; |