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

  • aarch64 : Add assembly support for -fsanitize=hwaddress tagged globals.

    21 août 2019, par Peter Collingbourne
    aarch64: Add assembly support for -fsanitize=hwaddress tagged globals.
    
    As of LLVM r368102, Clang will set a pointer tag in bits 56-63 of the
    address of a global when compiling with -fsanitize=hwaddress. This requires
    an adjustment to assembly code that takes the address of such globals: the
    code cannot use the regular R_AARCH64_ADR_PREL_PG_HI21 relocation to refer
    to the global, since the tag would take the address out of range. Instead,
    the code must use the non-checking (_NC) variant of the relocation (the
    link-time check is substituted by a runtime check).
    
    This change makes the necessary adjustment in the movrel macro, where it is
    needed when compiling with -fsanitize=hwaddress.
    
    Signed-off-by: Peter Collingbourne <pcc@google.com>
    Signed-off-by: Martin Storsjö <martin@martin.st>
    
    • [DBH] libavutil/aarch64/asm.S
  • rtsp : add pkt_size option

    11 avril 2019, par Tristan Matthews
    rtsp: add pkt_size option
    
    This allows users to specify an upper limit on the size of outgoing packets
    when publishing via RTSP.
    
    Signed-off-by: Martin Storsjö <martin@martin.st>
    
    • [DBH] libavformat/rtsp.c
    • [DBH] libavformat/rtsp.h
  • time_internal : Prefix fallback versions of gmtime_r/localtime_r with ff_

    10 avril 2019, par Martin Storsjö
    time_internal: Prefix fallback versions of gmtime_r/localtime_r with ff_
    
    Use a macro to redirect calling code from the official name to the
    ff_ prefixed one.
    
    Detecting these functions in configure can be tricky (on mingw, they
    are conditionally available depending on posix feature defines).
    If configure didn't detect them, but they still are visible at
    compile time (due to an unrelated header defining the posix feature
    defines), providing the local fallback versions with a prefixed
    name is safer.
    
    Signed-off-by: Martin Storsjö <martin@martin.st>
    
    • [DBH] libavutil/time_internal.h
  • configure : Include time.h when checking for gmtime_r and localtime_r

    10 avril 2019, par Martin Storsjö
    configure: Include time.h when checking for gmtime_r and localtime_r
    
    These functions are available in time.h (conditional on posix thread
    safe functions) on mingw.
    
    Previously, these functions weren't detected by configure, and
    libavutil/time_internal.h provided replacements, even if time.h
    actually contained definitions of them.
    
    These mingw inline functions are currently defined as
     "extern __inline __attribute__((__gnu_inline__))". In this case,
    redefining a new static inline version of the same function with the
    same name is tolerated.
    
    Signed-off-by: Martin Storsjö <martin@martin.st>
    
    • [DBH] configure
  • configure : Add -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 for mingw as well

    10 avril 2019, par Martin Storsjö
    configure: Add -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 for mingw as well
    
    Mingw headers have got header inline implementations of localtime_r
    and gmtime_r, but only visible if certain posix thread safe functions
    have been requested.
    
    This is a preparatory step for improving the detection of those
    functions.
    
    Signed-off-by: Martin Storsjö <martin@martin.st>
    
    • [DBH] configure