1. 30 Apr, 2020 14 commits
  2. 29 Apr, 2020 21 commits
  3. 28 Apr, 2020 2 commits
  4. 27 Apr, 2020 2 commits
    • Andreas Rheinhardt's avatar
      swscale/vscale: Increase type strictness · 2fae0009
      Andreas Rheinhardt authored
      libswscale/vscale.c makes extensive use of function pointers and in
      doing so it converts these function pointers to and from a pointer to
      void. Yet this is actually against the C standard:
      C90 only guarantees that one can convert a pointer to any incomplete
      type or object type to void* and back with the result comparing equal
      to the original which makes pointers to void generic pointers to
      incomplete or object type. Yet C90 lacks a generic function pointer
      type.
      C99 additionally guarantees that a pointer to a function of one type may
      be converted to a pointer to a function of another type with the result
      and the original comparing equal when converting back.
      This makes any function pointer type a generic function pointer type.
      Yet even this does not make pointers to void generic function pointers.
      
      Both GCC and Clang emit warnings for this when in pedantic mode.
      
      This commit fixes this by using a union that can hold one member of any
      of the required function pointer types to store the function pointer.
      This works even for C90.
      Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      2fae0009
    • Mark Thompson's avatar
      1dff97b7
  5. 26 Apr, 2020 1 commit
    • Marton Balint's avatar
      avformat: only allow a single bitstream filter when muxing · 1128aa87
      Marton Balint authored
      Current muxers only use a single bitstream filter, so there is no need to
      maintain code which operates on a list of bitstream filters. When multiple
      bitstream filters are needed muxers can simply use a list bitstream filter.
      
      If there is a use case in the future when different bitstream filters should be
      added at subsequent packets then a new API possibly involving reconfiguring the
      list bitstream filter can be added knowing the exact requirements.
      Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
      1128aa87