riff: Move muxing code to a separate file
riff: Move demuxing code to a separate file.