lavu: define FF_MEMORY_POISON and use it

Allow single-place definition of constant used to fill poisoned memory.
This commit is contained in:
Stefano Sabatini
2013-05-12 13:37:33 +02:00
parent e70e2583d0
commit 84be806982
3 changed files with 4 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ void *av_malloc(size_t size)
}
#if CONFIG_MEMORY_POISONING
if (ptr)
memset(ptr, 0x2a, size);
memset(ptr, FF_MEMORY_POISON, size);
#endif
return ptr;
}