Skip to content
Snippets Groups Projects

Fix the half-octave bounds check in _vp_psy_init

Merged Timothy B. Terriberry requested to merge tterribe/vorbis:issue2353 into master

The existing code ensured that halfoc would not exceed P_BANDS-1, but the interpolation used index P_BANDS (albeit with a weight of 0) when this bound was actually hit. Add an extra clamp on the integer index to avoid this. Thanks to Paul Adenot for the report.

Fixes #2353

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading