Simplify the top of rm_assemble_video_frame().