- 22 Mar, 2017 1 commit
-
-
Clément Bœsch authored
USE_ATOMICS is only set if there is no thread implementation enabled, in which case you can't expect any lock mechanism from FFmpeg. This is also conflicting with the incoming use of stdatomic.
-
- 02 Oct, 2016 1 commit
-
-
Anton Khirnov authored
-
- 03 Aug, 2016 1 commit
-
-
Anton Khirnov authored
In such a case behave as if the buffer was not reallocatable -- allocate a new one and copy the data (preserving just the part described by the reference passed to av_buffer_realloc). CC: libav-stable@libav.org Reported-By:
wm4 <nfxjfg@googlemail.com>
-
- 14 Feb, 2016 1 commit
-
-
Anton Khirnov authored
This should allow using more complex allocators than simple malloc wrappers.
-
- 12 Mar, 2015 2 commits
-
-
Michael Niedermayer authored
This allows making a AVBufferRef writable without the need to update all pointers to it Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
This allows reallocating AVBufferRefs without the need to update all pointers to it Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 23 Jan, 2015 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 06 Dec, 2014 1 commit
-
-
Michael Niedermayer authored
avutil/buffer: add #if USE_ATOMICS around atomics specific functions to ensure sync types arent mixed by mistake Fixes CID1257011 Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 29 Nov, 2014 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 27 Nov, 2014 1 commit
-
-
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:
Anton Khirnov <anton@khirnov.net>
-
- 06 Mar, 2014 1 commit
-
-
Lukasz Marek authored
This reverts commit 31444400. Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 25 Feb, 2014 1 commit
-
-
Lukasz Marek authored
new function allows to unref buffer and obtain its data. Signed-off-by:
Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 13 May, 2013 1 commit
-
-
Stefano Sabatini authored
Allow single-place definition of constant used to fill poisoned memory.
-
- 30 Mar, 2013 1 commit
-
-
Michael Niedermayer authored
This function is quite usefull for debuging Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 29 Mar, 2013 1 commit
-
-
Xidorn Quan authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 24 Mar, 2013 2 commits
-
-
Michael Niedermayer authored
Found-by: ubitux Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 19 Mar, 2013 1 commit
-
-
Michael Niedermayer authored
Fixed CID991859 Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 18 Mar, 2013 1 commit
-
-
Michael Niedermayer authored
This race will always happen sooner or later in a multi-threaded environment and it will over time lead to OOM. This fix works by spinning, there are other ways by which this can be fixed, like simply detecting the issue after it happened and freeing the over-allocated memory or simply using a mutex. Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 17 Mar, 2013 2 commits
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
602->442 dezicycles Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 12 Mar, 2013 1 commit
-
-
Clément Bœsch authored
-
- 08 Mar, 2013 2 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-