mem: fix pointer pointer aliasing violations
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 26 Jan 2015 19:17:31 +0000 (21:17 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 1 Feb 2015 01:28:40 +0000 (02:28 +0100)
commit60392480181f24ebf3ab48d8ac3614705de90152
treeb3a200106be1f4aadcf7dee6173577f6d6de4a17
parentf726fc21ef76a8ba3445448066f7b2a687fbca16
mem: fix pointer pointer aliasing violations

This uses explicit memory copying to read and write pointer to pointers
of arbitrary object types. This works provided that the architecture
uses the same representation for all pointer types (the previous code
made that assumption already anyway).

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavutil/mem.c