git.libav.org Git - libav.git/rss log
Libav master git repository
Les articles publiés sur le site
-
avutil : fix data race in av_get_cpu_flags()
8 décembre 2016, par Wan-Teh Changavutil: fix data race in av_get_cpu_flags() Make the one-time initialization in av_get_cpu_flags() thread-safe. The static variables |flags|, |cpuflags_mask|, and |checked| in libavutil/cpu.c are read and written using normal load and store operations. These are considered as data races. The fix is to use atomic load and store operations. Remove the |checked| variable because the invalid value of -1 for |flags| can be used to indicate the same condition. Rename |flags| to |cpu_flags| and move it to file scope. The fix can be verified by running the libavutil/tests/cpu_init.c test program under ThreadSanitizer: ./configure --toolchain=clang-tsan make libavutil/tests/cpu_init libavutil/tests/cpu_init There should be no warnings from ThreadSanitizer. Co-author: Dmitry Vyukov of Google, who suggested the data race fix. Signed-off-by: Wan-Teh Chang <wtc@google.com>
-
dxva2 : Adjust multiple inclusion guard names to follow convention
7 décembre 2016, par Diego Biurrun -
configure : Fail if cuda was enabled and is not available
7 décembre 2016, par Diego Biurrun -
build : Ensure that the "all" target appears before all Makefile includes
7 décembre 2016, par Diego Biurrun -
build : Drop stray golomb dependencies
7 décembre 2016, par Diego Biurrun