libavformat: Move avc mp4 startcode parsing to a shared file