Split RMContext into RMDemux/MuxContext and make them private in rmdec/enc.c.