1. 07 Dec, 2014 1 commit
  2. 05 Dec, 2014 4 commits
  3. 04 Dec, 2014 1 commit
  4. 03 Dec, 2014 11 commits
  5. 02 Dec, 2014 9 commits
  6. 01 Dec, 2014 1 commit
  7. 28 Nov, 2014 9 commits
  8. 27 Nov, 2014 4 commits
    • Anton Khirnov's avatar
      opusdec: make sure all substreams have the same number of coded samples · 19730794
      Anton Khirnov authored
      Fixes invalid writes with invalid multichannel streams.
      
      CC:libav-stable@libav.org
      19730794
    • Kieran Kunhya's avatar
      vf_interlace: get rid of useless loads · 96fda42a
      Kieran Kunhya authored
      Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
      96fda42a
    • wm4's avatar
      lavu: fix memory leaks by using a mutex instead of atomics · fbd6c97f
      wm4 authored
      The buffer pool has to atomically add and remove entries from the linked
      list of available buffers. This was done by removing the entire list
      with a CAS operation, working on it, and then setting it back again
      (using a retry-loop in case another thread was doing the same thing).
      
      This could effectively cause memory leaks: while a thread was working on
      the buffer list, other threads would allocate new buffers, increasing
      the pool's total size. There was no real leak, but since these extra
      buffers were not needed, but not free'd either (except when the buffer
      pool was destroyed), this had the same effects as a real leak. For some
      reason, growth was exponential, and could easily kill the process due
      to OOM in real-world uses.
      
      Fix this by using a mutex to protect the list operations. The fancy
      way atomics remove the whole list to work on it is not needed anymore,
      which also avoids the situation which was causing the leak.
      Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
      fbd6c97f
    • Anton Khirnov's avatar
      lavu: add wrappers for the pthreads mutex API · 2443e522
      Anton Khirnov authored
      Also add no-op fallbacks when threading is disabled.
      
      This helps keeping the code clean if Libav is compiled for targets
      without threading. Since we assume that no threads of any kind are used
      in such configurations, doing nothing is ok by definition.
      
      Based on a patch by wm4 <nfxjfg@googlemail.com>.
      2443e522