rtpenc: base max_frames_per_packet on avg_frame_rate, not codec timebase