tidsp: mp4venc: ensure availability of codec data
tidsp: mp4venc: ensure availability of codec data

Use malloc and memcpy to be sure of the availability of the memory where
the codec data is stored.

Based on patch by Robert Swain.

Signed-off-by: Mark Nauwelaerts <b7a9d5e0b6d7b100d27ef2a8e80c5c1c14a8de12@collabora.co.uk>
Signed-off-by: Felipe Contreras <de77a8b9cd239b204c19c52ed62e48ab47243362@nokia.com>

felipec/gst-dsp,community-ssu/gst-dsp,community-ssu/gst-dsp,felipec/gst-dsp,community-ssu/gst-dsp