diff options
author | wm4 <wm4@nowhere> | 2015-11-11 19:27:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-11 19:28:37 +0100 |
commit | 9774be0d15e9477db521466cb5f77f07a46cc7c2 (patch) | |
tree | aeda92d268ef6e357284a5a074bd6d4cf1810551 /stream/audio_in.h | |
parent | fee45c01703ace0d6af7b8fe60d151be245a0e3f (diff) | |
download | mpv-9774be0d15e9477db521466cb5f77f07a46cc7c2.tar.bz2 mpv-9774be0d15e9477db521466cb5f77f07a46cc7c2.tar.xz |
af_lavrresample: simplify set_compensation usage
Just set the ratio directly by working around the intended semantics of
the API function. The silly rounding stuff we had isn't needed anymore
(and not entirely correct anyway).
Note that since the compensation is virtually active forever, we need to
reset if it's not needed. So always run this code to be sure to reset
it.
Also note that libswresample itself had a precision issue, until it
was fixed in FFmpeg commit 351e625d.
Diffstat (limited to 'stream/audio_in.h')
0 files changed, 0 insertions, 0 deletions