avconv: move max_frames to options context.