Implements opus_packet_get_nb_samples()