Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix float to int16_t conversion in resampler
The backward conversion int16_t to float in libopenshot has range (1.0; -1.0], thus conversion -1.0f to int16_t should be secured. Float values can exceed the (1.0; -1.0) range. This can cause distortion in audio instead of limiting values at max/min for the int16_t.
- Loading branch information