demux: mp4: split declarations

things that does not belong to libmp4
encoder: twolame: return NULL if flush returns 0 bytes (fix #11553)
demux: mp4: fix copyright