Stefano Sabatini
84be806982
lavu: define FF_MEMORY_POISON and use it
...
Allow single-place definition of constant used to fill poisoned memory.
2013-05-13 13:52:26 +02:00
Michael Niedermayer
dc92464aee
avutil: add av_buffer_get_ref_count()
...
This function is quite usefull for debuging
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-30 20:28:00 +01:00
Xidorn Quan
c81d2fa96d
avutil/buffer: add get_opaque
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-29 17:31:16 +01:00
Michael Niedermayer
8e944891ce
avutil/buffer: remove redundant memory poisoning
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-24 02:21:42 +01:00
Michael Niedermayer
058c002932
avutil/buffer: support memory poisoning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-24 01:44:48 +01:00
Michael Niedermayer
f1c3d8b344
avutil/add_to_pool: remove unused assgnment
...
Fixed CID991859
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-19 13:35:10 +01:00
Michael Niedermayer
cea3a63ba3
avutil/buffer: Fix race in pool.
...
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>
2013-03-18 19:19:22 +01:00
Michael Niedermayer
c603f22683
avutil/get_pool: remove dead operations whichs result is never used.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-17 18:40:15 +01:00
Michael Niedermayer
e3be7b1159
avutil/get_pool: Remove redundant initial atomic operation
...
602->442 dezicycles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-17 18:40:15 +01:00
Clément Bœsch
80661e0f55
buffer: use the atomic get instead of the add and fetch variant.
2013-03-12 12:12:49 +01:00
Michael Niedermayer
532f31a695
Merge commit '1cec0624d0e6f48590283a57169b58b9fe8449d3'
...
* commit '1cec0624d0e6f48590283a57169b58b9fe8449d3':
AVBuffer: add a new API for buffer pools
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-08 16:06:20 +01:00
Michael Niedermayer
36099df521
Merge commit '8e401dbe90cc77b1f3067a917d9fa48cefa3fcdb'
...
* commit '8e401dbe90cc77b1f3067a917d9fa48cefa3fcdb':
lavu: add a new API for reference-counted data buffers.
Conflicts:
libavutil/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-08 16:01:00 +01:00
Anton Khirnov
1cec0624d0
AVBuffer: add a new API for buffer pools
2013-03-08 07:33:28 +01:00
Anton Khirnov
8e401dbe90
lavu: add a new API for reference-counted data buffers.
2013-03-08 07:33:03 +01:00