git.libav.org Git - libav.git/rss log

Libav master git repository

http://git.libav.org/?p=libav.git;a=summary

Les articles publiés sur le site

  • avutil : fix data race in av_get_cpu_flags()

    8 décembre 2016, par Wan-Teh Chang
    avutil: 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>
    
    • [DBH] libavutil/Makefile
    • [DBH] libavutil/cpu.c
    • [DBH] libavutil/cpu.h
    • [DBH] libavutil/tests/.gitignore
    • [DBH] libavutil/tests/cpu_init.c
    • [DBH] tests/fate/libavutil.mak
  • dxva2 : Adjust multiple inclusion guard names to follow convention

    7 décembre 2016, par Diego Biurrun
    dxva2: Adjust multiple inclusion guard names to follow convention
    
    • [DBH] libavcodec/dxva2.h
    • [DBH] libavcodec/dxva2_internal.h
  • configure : Fail if cuda was enabled and is not available

    7 décembre 2016, par Diego Biurrun
    configure: Fail if cuda was enabled and is not available
    
    This is the standard behavior for external libraries.
    
    • [DBH] configure
  • build : Ensure that the "all" target appears before all Makefile includes

    7 décembre 2016, par Diego Biurrun
    build: Ensure that the "all" target appears before all Makefile includes
    
    Otherwise builds without explicit target result in silent no-ops.
    
    • [DBH] Makefile
    • [DBH] common.mak
  • build : Drop stray golomb dependencies

    7 décembre 2016, par Diego Biurrun
    build: Drop stray golomb dependencies
    
    • [DBH] configure