diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-05-12 13:37:33 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-05-13 13:52:26 +0200 |
commit | 84be80698227366d970e045001e4b59e4f99f0a1 (patch) | |
tree | 62048339311972c4ddfee4c0385bcaa8da1ed4eb /libavutil/buffer.c | |
parent | e70e2583d07188b6508cfb097ab222afd6b08d11 (diff) | |
download | ffmpeg-84be80698227366d970e045001e4b59e4f99f0a1.tar.gz |
lavu: define FF_MEMORY_POISON and use it
Allow single-place definition of constant used to fill poisoned memory.
Diffstat (limited to 'libavutil/buffer.c')
-rw-r--r-- | libavutil/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/buffer.c b/libavutil/buffer.c index a5fc8d7009..e9bf54b96c 100644 --- a/libavutil/buffer.c +++ b/libavutil/buffer.c @@ -288,7 +288,7 @@ static void pool_release_buffer(void *opaque, uint8_t *data) AVBufferPool *pool = buf->pool; if(CONFIG_MEMORY_POISONING) - memset(buf->data, 0x2a, pool->size); + memset(buf->data, FF_MEMORY_POISON, pool->size); add_to_pool(buf); if (!avpriv_atomic_int_add_and_fetch(&pool->refcount, -1)) |