summaryrefslogtreecommitdiff
path: root/libavutil/buffer.c
Commit message (Collapse)AuthorAge
* Revert "lavu/buffer: add release function"Lukasz Marek2014-03-06
| | | | | | This reverts commit 3144440004941aa22ffea9933f5e5dfe826df654. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/buffer: add release functionLukasz Marek2014-02-25
| | | | | | | 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>
* lavu: define FF_MEMORY_POISON and use itStefano Sabatini2013-05-13
| | | | Allow single-place definition of constant used to fill poisoned memory.
* avutil: add av_buffer_get_ref_count()Michael Niedermayer2013-03-30
| | | | | | This function is quite usefull for debuging Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/buffer: add get_opaqueXidorn Quan2013-03-29
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/buffer: remove redundant memory poisoningMichael Niedermayer2013-03-24
| | | | | Found-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/buffer: support memory poisoningMichael Niedermayer2013-03-24
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/add_to_pool: remove unused assgnmentMichael Niedermayer2013-03-19
| | | | | Fixed CID991859 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/buffer: Fix race in pool.Michael Niedermayer2013-03-18
| | | | | | | | | | 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>
* avutil/get_pool: remove dead operations whichs result is never used.Michael Niedermayer2013-03-17
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/get_pool: Remove redundant initial atomic operationMichael Niedermayer2013-03-17
| | | | | | 602->442 dezicycles Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* buffer: use the atomic get instead of the add and fetch variant.Clément Bœsch2013-03-12
|
* Merge commit '1cec0624d0e6f48590283a57169b58b9fe8449d3'Michael Niedermayer2013-03-08
|\ | | | | | | | | | | | | * commit '1cec0624d0e6f48590283a57169b58b9fe8449d3': AVBuffer: add a new API for buffer pools Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * AVBuffer: add a new API for buffer poolsAnton Khirnov2013-03-08
| |
* | Merge commit '8e401dbe90cc77b1f3067a917d9fa48cefa3fcdb'Michael Niedermayer2013-03-08
|/ | | | | | | | | | * commit '8e401dbe90cc77b1f3067a917d9fa48cefa3fcdb': lavu: add a new API for reference-counted data buffers. Conflicts: libavutil/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
* lavu: add a new API for reference-counted data buffers.Anton Khirnov2013-03-08