srs-librtmp: implements the read packet.