diff options
author | wm4 <wm4@nowhere> | 2015-01-05 12:34:34 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-01-25 17:00:18 +0900 |
commit | 12c316d95e19d3135528e28683bef9da1726efcd (patch) | |
tree | b5065c1732ac4fe7593939d4ae119df18ee85741 /wscript_build.py | |
parent | cf997ff6914a46136aead7293cfcc7c2b8682a5c (diff) | |
download | mpv-12c316d95e19d3135528e28683bef9da1726efcd.tar.bz2 mpv-12c316d95e19d3135528e28683bef9da1726efcd.tar.xz |
player: use libavutil API to get number of CPUs
Our own code was introduced when FFmpeg didn't provide this API (or
maybe didn't even have a way to determine the CPU count). But now,
av_cpu_count() is available for all FFmpeg/Libav versions we support,
and there's no reason to have our own code.
libavutil's code seems to be slightly more sophisticated than our's, and
it's possible that the detected CPU count is different on some platforms
after this change.
Diffstat (limited to 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/wscript_build.py b/wscript_build.py index 07b67ce31f..5abefa0885 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -375,7 +375,6 @@ def build(ctx): ## osdep ( getch2_c ), ( "osdep/io.c" ), - ( "osdep/numcores.c"), ( "osdep/timer.c" ), ( timer_c ), ( "osdep/threads.c" ), |