avcodec/dss_sp: Avoid a slow division and modulo in the pitch_lag calculation
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Feb 2015 21:49:57 +0000 (22:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 19 Feb 2015 21:53:35 +0000 (22:53 +0100)
commitb11edbd289e454a173914049ae4643a5498520d9
tree2b34c6bf71819bbe156b155404820c78778f572d
parent31fb029f2d9e7facb5eb2899b0c8bdb16df17997
avcodec/dss_sp: Avoid a slow division and modulo in the pitch_lag calculation

Also check the combined_pitch for validity (which is needed to keep the behavior
identical in the error case)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dss_sp.c