Open gamma-delta opened 4 years ago
According to the backtrace, the panic is actually called by https://github.com/jeenalee/tv1d/blob/master/src/lib.rs#L363. I think this must be due to an automatic conversion to a type without as much fidelity as whatever is used internally.
https://github.com/jeenalee/tv1d/blob/master/src/lib.rs#L320
Sample code: (I have not actually tested this code but it seems like it should cause the overflow)
Due to the add and subtract on those two lines of code not being checked, an overflow may occur. This happened to me when I was using tv1d to denoise some audio.