sdl: document some pointer voodoo

This was lifted straight from pictureflow...

Change-Id: Ie09184390e6fcea007e7daea001f075de307f878
This commit is contained in:
Franklin Wei 2019-08-08 00:10:34 -04:00
parent cd77d9283f
commit 1dabca6c26

View file

@ -196,6 +196,8 @@ enum plugin_status plugin_start(const void *param)
size_t sz;
audiobuf = rb->plugin_get_audio_buffer(&sz);
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
/* We are loaded as an overlay towards the end of the audio
* buffer. We must take care not to overwrite ourselves. */
if ((uintptr_t)audiobuf < (uintptr_t)plugin_start_addr)
{
uint32_t tmp_size = (uintptr_t)plugin_start_addr - (uintptr_t)audiobuf;