summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-11 19:27:42 +0100
committerwm4 <wm4@nowhere>2015-11-11 19:28:37 +0100
commit9774be0d15e9477db521466cb5f77f07a46cc7c2 (patch)
treeaeda92d268ef6e357284a5a074bd6d4cf1810551 /player/video.c
parentfee45c01703ace0d6af7b8fe60d151be245a0e3f (diff)
downloadmpv-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 'player/video.c')
0 files changed, 0 insertions, 0 deletions