lwlibav_dec: Avoid using av_copy_packet_side_data().

This is also not defined in libav.
And fix memory leak at indexing of ADTS AAC.